PIR Sensor and Ultrasonic Sensor are connected together to detect any movement and to calculate distance of the thing that is causing the movement. LED and Buzzer are connected to one of digital output ports of Arduino Board to provide blinking output after detecting the motion.
- The motion detected by the PIR sensor will be sent as information to the LED, buzzer and ultrasonic and temperature sensors
- LED and Buzzer - go on HIGH mode.
- Ultrasonic Sensor - calculates distance of nearest obstacle.
- Temperature Sensor - calculates the temperature in the the area
If the temperature goes greater or lower than a particular temperature range, the LED and buzzer will go on HIGH mode with a higher frequency and will display the message: “Beware! Temperature is exceeding the safe range!”