added preliminary sensor code