I was working on making a Schematic for Paper Rolling Mechanism. This PCB going to connect direct to the Raspberry Pi and the sensor will only output 1 or 0 which will control the motor with that data.
The code that will control the motor when Sensor outputs 1. I have also added way to change motor speed.