add sender statemachine with basic state machine structure
make devicehandler class to do all the device hardware controlling