Microcontroller › 8051 › MICRO CONTROLLER BASED ULTRASONIC DISTANCE MEASUREMENT SYSTEM › Hi, Ya your sensor will work
Ya your sensor will work for that. Use LM358 in comparator mode. If you are not aware of comparator then just google it…!!
You will get it within a min. If you face any issue, revert me back.