The skin, as the largest organ of human body, can use ions as information carriers to convert multiple external stimuli into biological potential signals. So far, artificial skin that can imitate the functionality of human skin has been extensively investigated. However, the demand for additional power, non-reusability and serious damage to the skin greatly limits applications. Here, we have developed a self-powered gradient hydrogel which has high temperature-triggered adhesion and room temperature-triggered easy separation characteristics. The self-powered gradient hydrogels are polymerized using 2-(dimethylamino) ethyl metharcylate (DMAEMA) and N-isopropylacrylamide (NIPAM) under unilateral UV irradiation. The prepared hydrogels achieve good adhesion at high temperature and detachment at a low temperature. In addition, according to the thickness-dependent potential of the gradient hydrogel, the hydrogels can also sense pressure changes. This strategy can inspire the design and manufacture of self-powered gradient hydrogel sensors, contributing to the development of complex intelligent artificial skin sensing systems in the future.