Flip `dir` on button press
Print `dir` to debug output stream
Improve behavior on T-sections and critical situations

Now handles simple ("smooth") T-sections correctly.
Remove unused code (analog sensor)