Arduino Temperature sensor with a LED
int led = 1;


You do know that pins 0 and 1 are the serial port don't you?

Take your pick.... Either use pin 1 for the LED OR use pin 1 for the serial connection.  You can't do both!

As it says in the manual:


  In addition, some pins have specialized functions:
  
  
  Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. These pins are connected to the corresponding pins of the ATmega8U2 USB-to-TTL Serial chip.