The circuit diagram uses a bottle cap as a rain sensor that completes a circuit diagram through transistors and a power supply battery when rain touches it. This causes an LED to light up and a buzzer to sound, alerting people that rain has been detected.