Resetting Arduino UNO code (newbie)
When a microcontroller or a computer is powered on, it always does something. A program on a computer will return and the OS will run again. On a microcontroller there is no OS to return to, so every microcontroller program has an infinite loop.

The void loop() function of the Arduino framework is such an infinite loop. If you want your LM35 temperature code to be only run once, you can put it into the void setup() function, which is run once before going to loop(). When the loop() function is empty, the Arduino will do nothing after it returned from setup().

Otherwise, if you want to put your code into loop() for whatever reason, you can insert an infinite loop whereever you want it:

while(true);


This loops forever and does nothing. Your temperature code will only be executed on the next reset or power on.