Commented out currently-unneeded code to check for sensor.