I have changed phones a few times, or set them back to factory, and transferred the app database and continued with the same 90 days of data and current sensor. The phone has nothing to do with it (so long as it's android). I'd like to do this from android to iOS, but you know Apple...... Nothing's easy.
Anyway, "how?" I hear you say. Well it's a little techy but not difficult. You have to use a 'free' bit of software development tool called ADB. It's a suite of programs available form Windows, Mac and Linux. You connect the PC with a USB cable, fire up ADB, backup the app/database to the PC, put on the new phone and restore.
It really is that easy.
You will have to do a bit of googling to get the connection setup but it is quite straight forward.
Good luck.