Factor out sensor stuff into own ns.