Fix issue on digital read not triggering callback with value 0.