added getSensor.c