I'm making an auto pilot for a boat and I want a sensor on the rudder to know its angle, or at least to know when the rudder is straight.
The rudder implementation consists off a steel rod with a steering sylinder connected to it, similar to the image. I'd like to place two sensors, like in the image so I know when they are in "home position".
Even better is if I could read the position of the rudder, degres to the right/left etc.
Anyone know what kind of sensor would be good to make this happen?