import pycom the_value = pycom.nvs_get('the_key',None) if the_value: print(the_value)