Teaching Old Sensors New Tricks: the Algorithms Underpinning TinyML