My DIY automated pipe welding controller

I see loads of people on here not posting their code

It is much easier all round if you post it here directly rather than attaching it, but please use code tags when you do.