Reverted sensors.c change