A couple of thoughts for you:
1) you probably don’t need the near sensor to tell when the AI has arrived. Just setting a close enough distance in your Move node and running it until Success should do the trick. Nothing wrong with the near sensor generally, but you may not need it.
2) you probably need something like a second timer or an alternate state for your AI so that it knows when to stop looking. The object it is looking at will still be in the sensor range after your wait timer expires. I would probably
- only run the detect node while you are patrolling
- store the last object detected in a variable
- ignore any detected objects if they are == to the last detected object
- clear the last detected object variable after some amount of time