We need to see your schematic and wiring too.
You may need:
pinMode(sensorPin, INPUT_PULUP);
pinMode(sensorPin1, INPUT_PULUP);
We need to see your schematic and wiring too.
You may need:
pinMode(sensorPin, INPUT_PULUP);
pinMode(sensorPin1, INPUT_PULUP);