Create sensor code (draft)