Help with reducing lag on code

I am sweeping the infra-red side to side but the vibration is occurring in the middle of my sweep. It could be that I am moving my hand too fast, but there could be something else...