This is a Wokwi custom chip implementation for the MCP9808 temperature sensor. It is modelled after the Adafruit breakout board.
In a Wokwi project add a new custom chip. Copy the contents of mcp9808.chip.json into the custom chip’s json file, and mcp9808.chip.c in the c implementation file.
Use the library manager to add a suitable library to the project, e.g. the Adafruit MCP9808 Library library.
Wire the custom chip to the microcontroller. The chip needs VCC, GND, SCL and SDA connections.