first draft of controller for sensors