a switch in pressure from positive to negative when cavitation occurs in the tubing this binary event or switch in pressure in the particular embodiment can be detected by a sensor alternate embodiments contemplate a different downhole tool than the diverter causing a different dispositive or binary event based on cavitation and a different sensor identifying cavitation based on that binary event fig1 is a block diagram of a system to identify a cavitation condition according to embodiments of the invention generally a tool 5 is disposed in a downhole environment 2 the tool 5 creates a binary condition based on cavitation in tubing 20 although the tool 5 is shown in the tubing 20 embodiments of the system may include the tool 5 being disposed on or outside the tubing 20 as well a sensor 6 identifies the binary event created by the tool 5 a processing system 7 coupled to the sensor 6 processes the sensor 6 output to automatically take action or provide information to an operator fig2 is a cross sectional block diagram of a system to identify cavitation in tubing 20 according to an exemplary embodiment the exemplary embodiment relates to a pressure switch sensor 110 which is an embodiment of the sensor 6 identifying cavitation based on a switch in pressure caused by a diverter 120 which is an embodiment of the tool 5 during a cavitation.