def v0_read_handler(): # we must call virtual write in order to send the value to the widget blynk.virtual_write(0, time.ticks_ms() // 1000) print('v0') # register the virtual pin