Thanks for the help, currently ESP32 is on breadboard for testing with 3 pins grounded. I get the following output on the monitor when an alarm is generated.
===============================================================================================
16:55:38.998 -> Connecting to WiFi...
16:55:39.511 -> Connected to the WiFi network
16:55:39.511 -> Wired sensor 5=0
16:55:39.696 -> Wired sensor 18=0
16:55:39.883 -> Wired sensor 19=0
16:56:50.105 -> Sensor 18 Value 1
16:56:50.105 -> Requesting URL:
16:56:51.915 -> 200
16:56:51.915 -> /SEMAIL,18,/n,/SIREN,0,18,/n
16:56:51.915 -> Requesting URL:
16:56:53.450 -> 200
16:56:53.450 -> Office,Door,/n
16:56:53.450 -> Requesting URL:
16:56:54.962 -> 200
16:56:54.962 -> Received Address details
16:56:55.010 -> connected email server
16:57:05.003 -> 10 sec
16:57:05.003 -> Timeout
16:57:36.002 -> Requesting URL:
16:57:37.494 -> 200
16:57:37.494 -> TRUE,/n
16:57:38.471 -> Requesting URL:
16:57:40.035 -> 200
16:57:40.035 -> TRUE,/n
16:57:41.013 -> Requesting URL:
16:57:42.597 -> 200
16:57:42.597 -> TRUE,/n
16:57:43.576 -> Requesting URL:
16:57:45.377 -> 200
16:57:45.377 -> TRUE,/n
16:57:46.354 -> Requesting URL:
16:57:48.308 -> 200
16:57:48.308 -> TRUE,/n
16:57:49.318 -> Requesting URL:
=============================================================================
The email fails then the http request is sent out every 2 seconds.