Inaccurate IR Sensor Reading

Always, every time, I'd never share motor/servo power with logic power - logic requires stable glitch-free power. And make sure the power source can provide enough current for the worst-case instantaneous current draw of the servo, which will be measured in amps - and alas is often not documented.