i think software debounce, im not up to the hardware just yet.
start to work in state transition. next for the measuring.