Objective: Program the ESP32 so the conveyor motor (Digital Output) starts running automatically, and stops immediately when the proximity sensor (Digital Input) detects an object at the end of the belt.
I/O Hardware Mapping:
- Proximity Sensor -> GPIO 4 (Input)
- Conveyor Motor -> GPIO 18 (Output)