Can't see the components but would something like this work?
Yeah I have pictures but they’re not hosted anywhere so I can’t post a link to it. I’ll try a link to it on amazon. But the one I got is mirrored from what it shows. I ordered another one and it should be here tomorrow.
Stratux AHRS Sensors and Fan... https://www.amazon.com/dp/B06ZZCHBHT?ref=ppx_pop_mob_ap_share
I just got one from Amazon. They appear to be back in stock. Stratux AHRS Sensors and Fan Controller / Raspberry Pi MPU9250+BMP280 https://www.amazon.com/dp/B06ZZCHBHT/ref=cm_sw_r_cp_apip_7RpFzoyjBNMPq
It was in the description of the Amazon page
MPU-9250, BMP280, and fan speed controller.
See:
https://github.com/cyoung/stratux/wiki/All-About-AHRS
https://github.com/cyoung/stratux/wiki/Cooling-fan-speed-control