save sensor record info to flash

save sensor record info to flash to avoid erasing flash every time