Diashow code not working, full with errors

that all worked fine i really thank you for this, but now there is one last error that says that the serial port is not selected