Sensors not saving config?

Just DIY an ESP32 C3 with an LD2412 sensor and it seems to be working as expected. However, when I change the max detection and presense time, after a few seconds it defaults to max and 10 seconds. Is adjusting it in yaml the only way to do it?