Sewing needles are made from different types of coated steel. One way to find a lost sewing needle is to use a device or an item that will react to the presence of steel.
When your sewing needle gets lost on the carpet/floor, one of the ways to find it is to use a flashlight.
The flashlight method will work only when your needle is coated with a reflective material.