For anyone looking I found project here

https://github.com/m5stack/ThermalOnline-CatM-UserDemo

Also another version (larger thermal image (full screen))

https://github.com/m5stack/M5Stack/blob/master/examples/Unit/THERMAL_MLX90640/THERMAL_MLX90640.ino