To find the scale factor used to create the printed photo of the sandbox, we need to compare the sides of the actual hexagon with the sides of the hexagon in the photo.
The actual sides of the hexagon are 40 inches, and in the photo, the sides are each 4 inches.
The scale factor can be determined by the ratio of the side length in the photo to the actual side length:
\[ \text{Scale Factor} = \frac{\text{Length in Photo}}{\text{Actual Length}} = \frac{4 \text{ inches}}{40 \text{ inches}} = \frac{4}{40} = \frac{1}{10} \]
To express this as a decimal, we can perform the division:
\[ \frac{1}{10} = 0.1 \]
Thus, the scale factor used to create the printed photo of the sandbox is
\[ \boxed{0.1} \]