You need to add delay in async def read_sensor_async() function
async def read_sensor_async() function
Snippet:
async def read_sensor_async(): print("Reading sensor...") await asyncio.sleep(1) #<-- Add delay return 9 # Simulate sensor reading