@Mykle1 Depending on the style/implementation you’re using, you may want to read up on Promises in JS.
Also, see this note here about the lm-sensors
package.
Alternatively, have a look at MMM-SystemStats which uses vcgencmd
on the CLI to retrieve the system temp, which would be far easier to integrate into your current module.