sensor input working