time interrupt and external interrupt question

A system includes temperature, light sensor, potentiometer, switch and 3 leds. The system constantly reads the temperature values of the 1st and 2nd leds by reading the temperature sensor every 2 seconds and the light sensor every second. When the button is pressed, design the system that adjusts the 3rd led intensity according to the value from the potentiometer.how can i write the code ?

Is this homework?

MarkT:
Is this homework?

yess

Do you know how to get data from each of the sensors?
Do you know how to read a potentiometer?

Do you know how to write non-blocking code using millis()?

sterretje:
Do you know how to get data from each of the sensors?
Do you know how to read a potentiometer?

Do you know how to write non-blocking code using millis()?

Ido not know .can you help me ??

Most people who intend to pass off someone else's work as their own are at least smart enough not to post the assignment verbatim.

Were there any assignments before this one?

busranur:
Ido not know .can you help me ??

Start by searching for info on the specific sensors in combination with the keyword Arduino. As you haven't given any info about the sensors, none of us can help you with that and you have to do that yourself.

Next analyse code that you find (if any) and understand it. Repeat for other sensors.

Next mix the two codes.