Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Reply To: Calculated Variable Celsius to Fahrenheit DS18

Home Forums Mayfly Data Logger Calculated Variable Celsius to Fahrenheit DS18 Reply To: Calculated Variable Celsius to Fahrenheit DS18

#15140
Sara Damiano
Moderator

    -17966.20 does seem a little bit cold for most offices.  Did you change your variable array so it has the ds18Temp named variable in it instead of the other new variable?  If not update step will update that other new variable and not the one that you’re calculating F from, though adding the “true” to the getValue should force it to update anyway.  Is the Celsius temperature from the DS18 reasonable?

    Using true*1.8+32 will give you 33.8 no matter what happens.  In the multiplication “true” is converted to “1” so your equation is just (1*1.8)+32 = 33.8.