Hydrogen sensing: Efficiently avoiding signal drift