This may rattle some cages, but I submit in the spirit of discussion towards progress.
I have been fermenting in kegs for about a year now.
Completely sealed fermenters with no leaks.
Easy to draw a sample from.
I use a cheap, homemade spunding valve with a large 0-30psi guage on it, with hash marks every 0.5 pounds.
I use a “precision” hydrometer with markings every 0.001 gravity points.
I ferment beer in a well insulated chest freezer with temp control, to within +/- 1*F in a thermowell at the center of the beer mass.
In my limited experience, towards the end of fermentation, I can measure an increase in pressure on the guage from day to day, without being able to measure a difference in SG.
This could mean that my instrument for measuring gravity is not as precise as my instrument for measuring pressure?
This could mean that the yeast are metabolizing compounds in the beer near the end of fermentation that are not affecting gravity, once all the sugars are gone?
I have gone 3-4 days observing slight pressure increases while measuring steady gravity readings, time after time.
I have concluded that the gravity readings are not as effective in determining active fermentation completion as the pressure readings. So much so, that I have stopped taking gravity readings to determine when to cold crash completely, and rely solely on the pressure guage.
Granted, just as there is a level of activity beyond what I can measure with my hydrometer, there has to be a level of activity beyond what I can measure with my pressure guage.
I always give my beer 2-3 days post completion before cold crashing.
Worst case, if I’m wrong on all this, I’ve been adding 1-4 days to to beer’s time on the yeast cake. Not a problem for my purposes.
Back to the OP, I would think that an airlock would be more sensitive to offgassing than building pressure on a guage.
This method should prove viable for determining the end of fermentation, in my opinion. Of course, this assumes no leaks, constant temperature and constant ambient pressure.
For automation, something like no bubbles + 3 days should work.