Help with science project

Hi there, this is my first post, I hope I can get some help.
So I decided to use an arduino as part of a science project.
My goal is to have an temperature sensor (TMP36 which has 3 pins) control the brightness of a LED. Am not sure how to code this. The code for the temperature sensor is available at ( ARDX: Kumpulan Situs MPO Paling Gacor Anti Rungkad Terbaru 2023 ) .
This outputs the temperature in serial monitor.
but how do i get to control the brightness of and LED using these numbers ?

Cheers
Paul

you can use the PWM output to change the brightness (analogWrite() - Arduino Reference). A sample is included in the IDE. Hope it helps.

thank you very much i'll see if I can get it to work :slight_smile: