Finish detect_sensors.py