The integumentary system consists of the skin, hair, nails, sweat glands and oil glands. The skin has two main layers - the epidermis and dermis. The epidermis is made of stratified squamous epithelium and provides protective, regulatory and sensory functions. It consists of several layers of keratinocytes. The dermis lies below the epidermis and contains connective tissue, hair follicles, sweat and sebaceous glands. Skin appendages like hair, nails, sweat and oil glands develop from the epidermis. The skin regulates body temperature, protects from damage and pathogens, and detects sensations like touch and pressure.