Sensor to InfluxDB - DIY Example Help

Does anyone have any experience with this DIY custom component?

Do i just include this file into my current sensor, edit the configuration and it’ll automatically start pushing the sensor data?

Or, do I need to configure each sensor?