Added sensor code