Actually added sensor code