Amphibians know what's going on around them. Their skin contains a nerve network that sends messages about the environment to the brain. Part of this network is fairly straightforward and understandable. The dermis contains many uncoated nerve fibers, some of which extend into the epidermis. Here they serve as receptors for heat, cold, pain and pressure.
For more information, please read the story How Amphibians Behave