pir sensor with pic 16f877a mobile robot
based on sensor input: If motion detected, stop or change direction. If no motion, continue patrolling or stop. Sample Pseudocode Initialize I/O ports Set PIR sensor pin as input Set motor control pins as outputs Loop: