Hi,
I am a beginner when it comes to programming an arduino and have been learning mostly through videos on Youtube but so far have not found what I need to know for my next project.
Specifically, I am wanting to change the direction that a dc motor turns every time my RCWL-0516 proximity sensor is activated. I haven't found anything online that explains how to alternate between pins each time the sensor goes high.
Any help would be greatly appreciated.
C