scusa prova cosi:


on(release) {
if(temperatura.temp>=18 and temperatura.temp<=40){
temperatura.temp = temperatura.temp += 0.5;
}
}