How to create custom i2c sensor?

Good day. I have an i2c pressure sensor. There is a sensor address, there are register addresses. How to add this sensor to Home Assistant? Can you share a working example? I use the esp8266 module.