reworked sensor microcontroller interface to be cleaner and easier to maintain

These changes have only been applied to the debugging interface, still needs to be applied to main interface