We are beginners at Arduino & we are making a project to detect Occlusion & Air Bubbles in the Nutritious (Using buzzer for alarming) , we already started writing the code for the project but we have a lot of hardness in using it right specially millis() the alarm is going on when we contact the hardware with the Nutritious & Arduino before the liquid or the generated air bubbles even passed then after making some changes in the code the alarm stopped but all other codes been ignored by Arduino.
Can you please helping us with a code for air bubble & occlusion detection ?