DVR sensor code