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(){
    void loop(){
      int FSRReading = analogRead(FSR_Pin); 
      delay(250); //just here to slow down the output for easier reading

Log in to reply

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.