sensore tmp36 gz

Dal datasheet (http://www.analog.com/static/imported-files/data_sheets/TMP35_36_37.pdf) pare serva un condensatore ceramico da 0,1 uF tra GND e V+.

Note the 0.1 ?F bypass capacitor on the input. This capacitor should be a ceramic type, have very short leads (surface-mount is preferable), and be located as close as possible in physical proximity to the temperature sensor supply pin. Because these temperature sensors operate on very little supply current and may be exposed to very hostile electrical environments, it is important to minimize the effects of radio frequency interference (RFI) on these devices. The effect of RFI on these temperature sensors specifically and on analog ICs in general is manifested as abnormal dc shifts in the output voltage due to the rectification of the high frequency ambient noise by the IC. When the devices are operated in the presence of high frequency radiated or conducted noise, a large value tantalum capacitor (±2.2 ?F) placed across the 0.1 ?F ceramic capacitor may offer additional noise immunity

Poi questi:
float tempPin = 1; // pin analogico IN temperature sensor
int ledPintemp = 13; // pin led termistore
int outPin = 9; // pin attuatore
li puoi sostituire con dei #define

float tempPin = 1 non si può vedere. :astonished: :astonished: