In this project we will use the basics of an IR senosr to measure the speed of rotation of a shaft. The idea is to dectect or not the infrared light. Having some sort of reflecting material on the rotating shaft we cold detect a peak of the sensed light and measure the time between those peaks. The measured time is the time that the shaft take to make one full rotation.”