In this circuit 555 timer is wired as one shot timer whose timer period can be easily calculated by- T=1.1*R1*C1 Where T is in seconds, R is in ohms and C is in farads. When anybody wants to use the bathroom, it will press the switch momentarily. As soon as switch is pressed, relay connected…