NodeMCU Projects: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 52: | Line 52: | ||
print(ds.read_temp(rom)) |
print(ds.read_temp(rom)) |
||
temp = ds.read_temp(rom) |
temp = ds.read_temp(rom) |
||
srv = translate(temp, 20, 35, |
srv = translate(temp, 20, 35, 115, 40) |
||
print(int(srv)) |
print(int(srv)) |
||
if (temp>=20) & (temp<=35): |
if (temp>=20) & (temp<=35): |