Have you found a sensor that will work at that range? Here is a site FAQ that indicates 4 to 6mm with the most powerful magnet is more likely............... a hall effect switch to be triggered by a magnit. (40-50mm range).
by Duane Benson
by Jeff Child
by Jake Hertz