Have a look at node-red-contrib-vcgencmd (node) - Node-RED
That's a very easy to use solution to monitor for low voltage throttling, plus lots of other useful information.
Another tip is don't use a USB power cable longer than what you need! The longer the lead - the greater the voltage drop.
If the power lead resistance measures just 0.5 Ohm, that would give a voltage drop of up to 1 Volt, before it even gets to the pi.