Ultrasonic sensors can be used in dark environments as they are not affected by the absence of light or cameras, unlike proximity sensors.