Add sensor code