Partially started implementation of input commands for sensors,
unfinished refactoring to reduce duplication when converting command instructions into bytearrays for the chosen interface.