- How to stop the motor triggering more than once if an object (body) remains in the range of the sensor after triggering it the first time.
Look at the state change detection example.
- How to include the reed switch to stop the rotation when closed, but that will be closed when I want the motor to start turning.
See above. You'll need to wait for two state changes - to open and then to closed.