Error message avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x65

I am trying to install a BL touch on my Ender 3 pro
I am using the newest version of Arduino 1.8.12
board sanguino 1284p
processor ATmega1284p

but I get the error message

avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Users\sales\OneDrive\Documents\3d\upgrades\ENDER3\TH3D_UFW_U1.R2.A5\TH3DUF_R2\Windows Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM8
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x65
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x63
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x68
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x3a
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x54
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x46
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x69
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x6e

avrdude done. Thank you.

An error occurred while uploading the sketch

In the IDE, which BOARD was selected?