Hello! Im pretty new to this, i have a Sharp GP2Y0A02 that can detect distances. I would like to use this script, but modify it to Serial.println(“Motion detected”); whenever it detects a reading within a certain range… in example: reading of above 300 writes Motion detected. Readings below 300 does nothing.
Any ideas right in the christmas time? ;D