An optical sensor checks this mini hourglass eventually triggering the rotating mechanism to flip the thing 180 degrees. It also can send the optical sensor’s values to a PC by USB, providing random ...