sensor input processing