Added camera functions to sensor.c