Detecting rod for ignition electrode of wall-hung boiler