https://medium.com/@busrafatma.8898/how-are-encoders-of-benefit-to-the-automation-system-21a83973ddd9