Hi, yes it is possible, depending what you mean by "live".
I have done something similar recently using an esp8266 wifi module, programmed using the Arduino IDE, and an sht21 temp/humidity sensor, which sends its data to a website every 15 minutes.
There are various web services available that will accept and display data from sensors in the form of graphs or other symbols, and many are free. But I decided to take the opportunity to learn more by doing that stuff myself. This gave me the opportunity to learn some PHP, mySQL and SVG graphics, and I am pleased with the results so far.
I have plans to make multiple sensors like this including an outdoor module to measure wind speed and direction as well as temp, humidity, barometric pressure, light levels and so on.
With the techniques i am using, I think updating every second would be difficult. Certainly not every millisecond. But why would you need temperature updates so frequently?
I will post some code for you later. There is an Arduino sketch which reads the sensor, connects to wifi and sends the data using the http GET command with a parameter containing the new sensor reading. A php script on the server responds to to get command, picks up the sensor reading and stores it in a database table using an sql INSERT command. A second php script creates a web page showing the latest sensor readings in a table and and gives links to pages with graphs for each sensor. Another php script creates the graph pages using SVG commands.
The php scripts create html files when needed. When the "client" (your browser or the Arduino sketch) accesses the script, the php code runs on the server and creates an html file which may also contain some svg commands to draw the graphs. This html file is sent back to thr client to be displayed.
If you do not need to draw graphs or keep any history, you could get the Arduino to calculate the average temp and send that to the site with the current temp. This makes the server code easier. The values can be stored in a file ready for the php code to format onto the web page.
There are many ways to approach this project and this is only one of them. For example, an Arduino can act as the web server. This was not an option for me because my ISP blocks access to locally hosted servers.
On your web page, do you need the temperature reading to update itself every second, or just when Refresh is pressed? If so, you may need the write some javascript to make the page refresh itself.
PaulRB:
I will post some code for you later. There is an Arduino sketch which reads the sensor, connects to wifi and sends the data using the http GET command
Could you send that code please?
Also, what software did you use for the graph?
Hi, sorry, i have been going too fast. When you asked
mrears92:
Do i need to make the website using HTML/CSS then use PHP within the code to change the numerical values?
i assumed you understood more.
Only that first code i posted is Arduino code. It was written using the Arduino IDE.
The other 3 pieces of code are written in a language called PHP. I wrote them in a standard text exitor called gedit which comes with Ubuntu. You could use notepad in windows. There will be many choices of specialist editors for PHP and other languages out there for free, but i haven't tried any yet.
PHP scripts run on web servers. You need to upload them to the web server, i use FireFTP to do this. FireFTP is free and can be downloaded as an add-on for the Firefox browser. But any FTP program would do the job. An FTP program just allows you to log onto the web server and upload files to it, so they can be viewed on the web.
No, i did not use an ethernet shield. I used an esp8266 module. These modules have wifi built in and their processors can be programmed using the Arduino IDE.
Here is a picture of the sensor i built recently. The module at top centre is the esp8266.