I tested the code just for the temperature sensor and it did work but when i tried to add code for the push button it started to give me an error right on the "{" above the pushbutton code in void loop.
"expected unqualified-id before "{" token" I just cant seem to figure out what it wants me to fix
code
int redLED = 8;
int redOnTime = 250;
int redOffTime = 250;
Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn't show the posting toolbar then you can just manually add the code tags: [code]``[color=blue]// your code is here[/color]``[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.
Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor you will not have access to this useful tool. I recommend you to use the standard IDE instead.
Please remove unnecessary blank lines from your code before posting to the forum. One or two to separate code into logical sections is fine but large spaces for no reason or random blank lines just make for more scrolling when we're trying to read your code.
When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).
I have adjusted the forum so it should be easier to read now.I also made a change to the code that concerns the push button but now I am getting a error.
I did move the button code in with the temperature sensor code and that seemed to work. The LED is blinking but it doesn't seem to be blinking correctly. The on and off time are both a tenth of a second but it seems like the on time is much less than the off time.