Added back sensor code