Move sensor processing to own file