Measurement statemachine should work now.
TODO: actually pass measured data to the host.