still have sensor issue- when i test sensor with 9 volt it seems to

UPDATE- Neil you are right in that voltage divider not needed in my case - tested sensor when attached to ramps and 4.5 volts (not triggered ) 0v (approx ) when sensor triggered, thanks heaps