TomGeorge:
Hi,
Welcome to the forum.Is your fog light button a momentary ON button, or a press ON- press OFF mechanical type switch.
If the latter then you will not be able to detect how long you have you finger on the button.
Tom...
It is a momentary switch. When held down it supplies ground to its output wire.