0

It's possible to use a pressure sensor from a car to act like a button in raspberry pi?

1 Answers1

0

Sure,

Just consider your pressure sensor as a regular push-button in the following example. Don't forget the resistor.

https://raspberrypihq.com/use-a-push-button-with-raspberry-pi-gpio/

JMB
  • 61
  • 7
  • Do I need the resistor if I use pull up resistor ? –  Aug 06 '19 at 15:07
  • The resistor in this example is to limit current in the input. You could use a pull-down resistor as well to preserve the same logic as the example code. – JMB Aug 06 '19 at 15:24