Ultrasonic vs Infrared Sensors

15569-Ultrasonic_Distance_Sensor_-_HC-SR04-01a-removebg-preview.png

08958-03-L-removebg-preview.png

Ultrasonic Infrared
๐Ÿ‘ Light conditions doesnโ€™t matter Easier to hide
No sound interference
๐Ÿ‘Ž Sound interference
Tend to be bulky and hard to hide Tricky to use outdoors
Close to

A reed switch is another proximity sensor that will close in the presence of a magnetic field.