A computerized method for controlling the operation of a laser therapy device is disclosed. A laser therapy device comprising laser diodes has a microprocessor for storing and executing instructions pertaining to the operation of the laser diodes within certain parameters. The computerized method detects the movement of the laser therapy device and alters the output of the laser diodes when a movement signal exceeds predetermined threshold parameters. The computerized method detects difference in temperature in certain areas, and patterns in temperature differences, for assistance in diagnosing ailments. The computerized method also detects differences in skin color to determine treatment areas. The computerized method also measures the distance of the laser therapy device to a treatment area. The microprocessor executes instructions then which can alter the output of the laser diodes or generate an alarm signal based on measurements received.