HELP REVIEW MY ARDUINO UNO SKETCH FOR A MONITOR USING LM35 AND KY039

Where do you actually read the button switch? Don't you need to set the led pin to output?

All of those digitalWrites and delays can be replaced by a for loop.