Added sensor functionality