This tutorial shows how to detect movement direction in two dimensions using an Arduino Uno and two HC-SR04 ultrasonic distance sensors. I wrote my sketch to detect movement from left to right or from right to left, but it should be possible to adapt for other use cases, like detecting movement into or out of […]