Modifying EmonTH firmware: BME280 instead of si7021

Hello to everyone…I’ve got to say what a great site this is :slight_smile:
My existing setup has been running smoothly for the past couple of years but want to update some things before I expand any further.
Hardware wise a while ago I replaced the old DHT sensors on the EmonTH v1.5 with the si7021 and and reflashed with v2 firmware.
My question is does anyone know how to, or has anyone successfully modified the EmonTH v2 firmware to work with a BME280 instead of the si7021 and output it to a raspberry pi/RFM69Pi.

Should be possible, it looks like there is a decent BME280 Arduino library available: