just had to do a full new install of arduino ide due to pc death It would not compile this and getting wifi errors but to cure it IDE boards manager esp32 by Espressif systems was version 3.3.1 I down graded to version 2.0.17