Handle counter overflows
Currently we run into problems when the board is reset or the firmware registers overflow. In these cases the monitoring software believes that a bug occured (because the counters aren't increasing anymore).
Ideally we should store the previous value that was read from the firmware and compute the difference with the new value. If the result is positive it should be added to the prometheus counter, if the result is negative the new value should be used for the increment.