Monitor Generator Battery Voltage

Hello,i want to monitor my generator battery voltage using INA226 , i dont know where to start connecting pin using d1 mini.

any idea on how do it?

thanks

Simple search in esphome