Hi,
the LED lights up at 100%, but only for a fraction of a second.
See that you tell the LED to light up to a maximum, for 1 second, but when completing 1 second through the "interval" value, which is also 1 sec., you tell the LED to start turning off.
Try changing the interval value to for example 5 seconds and watch its LED.
I sure would like to help you but My eyes do not see so well and I do not have a clue as to what the hardware looks like. For all intense purposes it is a hardware problem. So why not help me help you by posting an annotated schematic, not a useless frizzy picture. Also post links to "Technical Information" on the hardware items, links to sales outlets such as azon are normally useless. For example there are over 100,000 different MOSFETs, no clue to what you are using.