So I made a robot it works and I already checked the HCSR04 sensor is not broken. I just want it to stop when it sees something but when I tried something like this it doesn’t work.
Hey, It doesn't do anything. When I upload it the robot just moves and you could wave your hand in front of it but it doesn't stop it continues moving. Thank You