Tiny2040 is there an internal tempsensor like in PICO?

Which PIN ? Syntax similar as in PICO ?

Yes, use the same code:

import machine
import utime

sensor_temp = machine.ADC(4)
conversion_factor = 3.3 / (65535)
 
while True:
    reading = sensor_temp.read_u16() * conversion_factor
  
    temperature = 27 - (reading - 0.706)/0.001721
    print(temperature)
    utime.sleep(2)

=========================================================

MicroPython 4678527 on 2021-02-23; Raspberry Pi Pico with RP2040

Type "help()" for more information.
>>> %Run -c $EDITOR_CONTENT
25.63997
27.0444
27.0444
27.0444
27.0444
27.0444
27.0444
27.0444

It works but I’m not too sure about how accurate it is.

Thanks, yes it works. Shows temp around 29, Some LEDs are on ? why? I am new to Tiny so apparently I have tried something stupid. How can I turn LEDs off, all of them?

That is easy:
Tiny 2040 RGB LED control - Tutorial - Discussion / Learning Resources - Pimoroni Buccaneers

A little piece I wrote earlier. Just set r, g and b values as required.