The invention relates to a gas bubble detector for determining gas bubbles in a fluid. The gas bubble detector can be used in any application requiring a determination whether gas bubbles exist in the fluid. The gas bubble detector has a photodetector, a light source, and a chamber in which the presence of gas bubbles are detected.