One Shot Function

I need to do a one shot for a proximity switch input. I’m not a script writer. Any help would be wonderful. All I want for christmas is a [ONS]:smiling_face: