Thank you all very much , the problam was of course the missing () of cond
about the typing thing.. when it didn't work I moved all my code to the main and tryied different things so it would work , when everything is working right I improve my code until its shorter
It has been a while since I played with the arduino and now I have a smart sla solar charger ![]()
(at least the first charging stage.. )
Thank you all again