Controlling cooling fan for Raspberry Pi 4

Thanks for this, itsvery useful