There are a few ways to detect a spy pen. The most obvious is to look for a camera lens on the pen. However, some pens have hidden lenses that are difficult to spot. Another way to detect a spy pen is by looking for a USB port on the pen. This is generally used for transferring files to and from the pen