These guys have been doing exactly that for decades, and with very simple sensors and microcontrollers,
https://www.youtube.com/watch?v=IngelKjmecg