Added sensor task queueing to sensor.c