Answer:
Epidermis - barrier or protective layer
dermis- thermoregulator or maintain the temperature.
Step-by-step explanation:
The two main skin layers that are present on the surface of the skin are the epidermis and the dermis layer (below the epidermis). These two layers are helpful in protecting from the excursion.
The epidermis layer is a protecting layer in general that acts as a barrier to protect the inner body from infection and also acts as the waterproofing layer.
The dermis regulates body temperature in an individual if the outer environment is too hot or cold, by sweat in a hot environment as it regulates the sweat glands.