help!!! reg code editing for displaying two rpm values from two hall sensors

sir, plz help me in editing the below code to serial display two rpm values from two diff hall sensors.

the below code is for displaying one hall sensor rpm value.

RPM Tachometre.txt (895 Bytes)

Please post your code here (using code tags) rather than attaching it. This avoids the need to download it to look at it

What have you tried to add the second sensor ?

does there need to be a 2nd pin defined like dataIN?

looks like you would need a 2nd set of variables, you might consider making each an array, including dataIN.

you could make what is currently loop() a separate sub-function which is passed an array index and would be called twice from a new loop(), once for each of two array indices