Refactor sensor packets into their own module

This also moves the functions that deal with those values into the same module.