I'm trying to figure out how to integrate two Keyence GP M010 pressure sensors w Raspberry Pi 3 B+ to automate data collection into a CSV file.

The issue I'm having is w/ determining how the sensors digital output works (I've only ever worked w/ analog and that makes sense to me). I understand there is a selection between PNP and NPN output which I have attempted to research but still do not fully understand. I have seen other digital sensors that more clearly define the output as being a binary number which can be easily translated to the decimal value of the sensor reading.

Here is a link to the specs of the sensor I am talking about (GP M010):

Keyence GP M010 Digital Pressure Sensor Specs

I'd greatly appreciate if someone could help explain to me like I am 5.

New contributor
user98728 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

user98728 is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.