Added sensor functions to common_c