creating state machine for scanning point (not finished)
creating state machine for scanning point (not finished)