Probleem met Hall Sensor

Ik heb je code toegepast, deze werkt ook zoals de eerder gegeven code.

Ik heb alleen de flowmeter bekrachtigd (door er doorheen te blazen) Hierbij kreeg ik de volgende output.

start...
time: 500
rpmcount: 120
flowcount: 0
....
....
time: 7000
rpmcount: 0
flowcount: 0
time: 7500
rpmcount: 1080
flowcount: 8
time: 8000
rpmcount: 13080
flowcount: 110
time: 8500
rpmcount: 17880
flowcount: 149
time: 9000
rpmcount: 17400
flowcount: 145
time: 9500
rpmcount: 16800
flowcount: 140
time: 10000
rpmcount: 16320
flowcount: 136
time: 10500
rpmcount: 14760
flowcount: 123
time: 11000
rpmcount: 12000
flowcount: 100
time: 11500
rpmcount: 9960
flowcount: 83
time: 12000
rpmcount: 8280
flowcount: 69
time: 12500
rpmcount: 6840
flowcount: 57
time: 13000
rpmcount: 4920
flowcount: 41
time: 13500
rpmcount: 4320
flowcount: 35
time: 14000
rpmcount: 3600
flowcount: 31
time: 14500
rpmcount: 3240
flowcount: 26
time: 15000
rpmcount: 2640
flowcount: 22
time: 15500
rpmcount: 2160
flowcount: 18
time: 16000
rpmcount: 1680
flowcount: 14
time: 16500
rpmcount: 1200
flowcount: 11
time: 17000
rpmcount: 840
flowcount: 7
time: 17500
rpmcount: 360
flowcount: 3
time: 18000
rpmcount: 0
flowcount: 0
time: 18500
rpmcount: 0
flowcount: 0
.....
"hall sensor bekrachtigd met een npool"
....
time: 216500
rpmcount: 0
flowcount: 0
time: 217000
rpmcount: 360
flowcount: 0
time: 217500
rpmcount: 480
flowcount: 0
time: 218000
rpmcount: 240
flowcount: 0
....

Dat klopt omdat dit mogelijk een concurrency race conditie veroorzaakt,
Het was mijn doel om met deltas te werken, Ik zal dat in de onderstaande code proberen correct te doen.

Wat is een concurrency race conditie?
Als ik de deltas in de code zie, dan kan ik die vergelijken met een soort van "blink without delay" code. Dus die verschillende variabelen kan ik mijn code beheersbaarder maken door jouw delta manier toe te passen.

Beide sensoren zijn voorzien van een pull up (5V-output) weerstand van 10k

de honeywell heeft een gevoeligheid van 3-3.25mV/ Gaus??
de oude heeft een gevoeligheid van 0,5 mT?