I have analoge input 0-10000mV
And i have a temperature sensor LM335Z, who gives 10mV/K
I want to now how much Celsius it is.
So.....
C=F-32/1,8
I write a program but is this not oke (??)
See errors in the log
I copy & pasta a lot off stuff and look at other programs

Code: Select all
local 'Analog Input 1 (AI1)'= 66
return {
active = true,
logging = {'Analog Input 1 (AI1)'},
on = {timer = { 'every minute' }
},
fahrenheit1 = 'Analog Input 1 (AI1)'/10
execute = function(domoticz, device)
celsius1 = fahrenheit-32/1,8
end
}