removed a couple of global variables in distance_sensors.c