Concept Flow - IR sensor for obstacle detection
Start
Read IR sensor value
Is value < threshold?
No→No obstacle detected
Yes
Obstacle detected
Take action (e.g., LED ON)
Repeat reading
The IR sensor reads distance values continuously. If the value is below a set threshold, it means an obstacle is close, triggering an action.
