...
Potential Encoder - PID System
Could potentially look into a proportional–integral–derivative (PID) controller system that would use tick marks based off of the encoder system readings to help align us correct our angle.
Look into encoder systems and understand how they work at a base levelWidget Connector