How to use force/preassure sensor to send data to domoticz?
-
I want to add a FSR preassure sensor to domoticz using mysensors. But how would a simple sketch that only sends raw preassure value to domotics every sec look like? I guess the Preassure sensor is only some sort of resistor where the resistance changes depenfing on the preassure.
But are there any kind of preassure variable that can be sent to domoticz or how should I solve this?
The original arduino preassure sketch looks like:
int FSR_Pin = A0; //analog pin 0 void setup(){ Serial.begin(9600); } void loop(){ int FSRReading = analogRead(FSR_Pin); Serial.println(FSRReading); delay(250); //just here to slow down the output for easier reading }
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login