This is a simple project in which a HC-SR501 PIR sensor is used to detect motion in a room. MQTT is used as the message broke between NodeRed and Rust running on a Raspberry Pi 4. The code detects the ...