Help! Error compiling for board Arduino Mega or Mega 2560

Hello, I have this error and can not fix. Please help.

Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\lelow\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\lelow\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\lelow\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10816 -build-path C:\Users\lelow\AppData\Local\Temp\arduino_build_316928 -warnings=none -build-cache C:\Users\lelow\AppData\Local\Temp\arduino_cache_180911 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\lelow\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\lelow\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\lelow\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10816 -build-path C:\Users\lelow\AppData\Local\Temp\arduino_build_316928 -warnings=none -build-cache C:\Users\lelow\AppData\Local\Temp\arduino_cache_180911 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino

Using board 'mega' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr

Detecting libraries used...

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp" -o nul

Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7]

ResolveLibrary(LiquidCrystal.h)

-> candidates: [LiquidCrystal@1.0.7]

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src" "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp" -o nul

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src" "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src\LiquidCrystal.cpp" -o nul

Generating function prototypes...

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src" "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp" -o "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\preproc\ctags_target_for_gcc_minus_e.cpp"

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\preproc\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src" "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp" -o "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp.o"

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:33:18: error: redefinition of 'LiquidCrystal lcd'

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

              ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:33:15: note: 'LiquidCrystal lcd' previously declared here

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

           ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:37:25: error: redefinition of 'const int tempsenspin [10]'

const int tempsenspin[10] = {A0, A1, A2, A3, A4, A5, A6, A7, A8, A9};

                     ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:37:11: note: 'const int tempsenspin [10]' previously defined here

const int tempsenspin[10] = {A0, A1, A2, A3, A4, A5, A6, A7, A8, A9};

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:38:23: error: redefinition of 'const int tempsetpin [4]'

const int tempsetpin[4] = {A10, A11, A12, A13};

                   ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:38:11: note: 'const int tempsetpin [4]' previously defined here

const int tempsetpin[4] = {A10, A11, A12, A13};

       ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:39:11: error: redefinition of 'const int speedsetpin'

const int speedsetpin = A14;

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:39:11: note: 'const int speedsetpin' previously defined here

const int speedsetpin = A14;

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:40:11: error: redefinition of 'const int forcesenspin'

const int forcesenspin = A15;

       ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:40:11: note: 'const int forcesenspin' previously defined here

const int forcesenspin = A15;

       ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:43:11: error: redefinition of 'const int heaterpin11'

const int heaterpin11 = 24; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:43:11: note: 'const int heaterpin11' previously defined here

const int heaterpin11 = 24; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:44:11: error: redefinition of 'const int heaterpin12'

const int heaterpin12 = 25; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:44:11: note: 'const int heaterpin12' previously defined here

const int heaterpin12 = 25; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:45:11: error: redefinition of 'const int heaterpin13'

const int heaterpin13 = 26; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:45:11: note: 'const int heaterpin13' previously defined here

const int heaterpin13 = 26; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:46:11: error: redefinition of 'const int heaterpin21'

const int heaterpin21 = 8; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:46:11: note: 'const int heaterpin21' previously defined here

const int heaterpin21 = 8; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:47:11: error: redefinition of 'const int heaterpin22'

const int heaterpin22 = 9; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:47:11: note: 'const int heaterpin22' previously defined here

const int heaterpin22 = 9; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:48:11: error: redefinition of 'const int heaterpin23'

const int heaterpin23 = 10; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:48:11: note: 'const int heaterpin23' previously defined here

const int heaterpin23 = 10; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:49:11: error: redefinition of 'const int heaterpin31'

const int heaterpin31 = 29; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:49:11: note: 'const int heaterpin31' previously defined here

const int heaterpin31 = 29; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:50:11: error: redefinition of 'const int heaterpin32'

const int heaterpin32 = 30; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:50:11: note: 'const int heaterpin32' previously defined here

const int heaterpin32 = 30; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:51:11: error: redefinition of 'const int heaterpin33'

const int heaterpin33 = 31; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:51:11: note: 'const int heaterpin33' previously defined here

const int heaterpin33 = 31; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:52:11: error: redefinition of 'const int heaterpin41'

const int heaterpin41 = 35; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:52:11: note: 'const int heaterpin41' previously defined here

const int heaterpin41 = 35; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:53:11: error: redefinition of 'const int heaterpin42'

const int heaterpin42 = 36; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:53:11: note: 'const int heaterpin42' previously defined here

const int heaterpin42 = 36; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:54:11: error: redefinition of 'const int heaterpin43'

const int heaterpin43 = 37; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:54:11: note: 'const int heaterpin43' previously defined here

const int heaterpin43 = 37; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:57:11: error: redefinition of 'const int driverpin'

const int driverpin = 7; // Yellow

       ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:57:11: note: 'const int driverpin' previously defined here

const int driverpin = 7; // Yellow

       ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:58:11: error: redefinition of 'const int DRminus'

const int DRminus = 49; // Brown

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:58:11: note: 'const int DRminus' previously defined here

const int DRminus = 49; // Brown

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:59:11: error: redefinition of 'const int DRplus'

const int DRplus = 50; // Red

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:59:11: note: 'const int DRplus' previously defined here

const int DRplus = 50; // Red

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:60:11: error: redefinition of 'const int PUminus'

const int PUminus = 51; // Orange

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:60:11: note: 'const int PUminus' previously defined here

const int PUminus = 51; // Orange

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:61:11: error: redefinition of 'const int MFminus'

const int MFminus = 52; // Green

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:61:11: note: 'const int MFminus' previously defined here

const int MFminus = 52; // Green

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:62:11: error: redefinition of 'const int MFplus'

const int MFplus = 53; // Blue

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:62:11: note: 'const int MFplus' previously defined here

const int MFplus = 53; // Blue

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:65:11: error: redefinition of 'const int settingspin'

const int settingspin = 40;

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:65:11: note: 'const int settingspin' previously defined here

const int settingspin = 40;

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:66:11: error: redefinition of 'const int directionpin'

const int directionpin = 41;

       ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:66:11: note: 'const int directionpin' previously defined here

const int directionpin = 41;

       ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:67:5: error: redefinition of 'int rotation'

int rotation = 1;

 ^~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:67:5: note: 'int rotation' previously defined here

int rotation = 1;

 ^~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:68:13: error: redefinition of 'const float v3'

const float v3 = 3.27; // The 3.3 volt output of the Arduino is not always exactly that. This ensure a somewhat more accurate value to work with.

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:68:13: note: 'const float v3' previously defined here

const float v3 = 3.27; // The 3.3 volt output of the Arduino is not always exactly that. This ensure a somewhat more accurate value to work with.

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:69:13: error: redefinition of 'const float vin'

const float vin = v3; // This is the voltage input for the sensors. Better use the 3.3 volt than the 5 volt since it is generally more accurate and stable than the 5 volt (depending on the Adruino's power source).

         ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:69:13: note: 'const float vin' previously defined here

const float vin = v3; // This is the voltage input for the sensors. Better use the 3.3 volt than the 5 volt since it is generally more accurate and stable than the 5 volt (depending on the Adruino's power source).

         ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:72:5: error: redefinition of 'int pagenumber'

int pagenumber = 1;

 ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:72:5: note: 'int pagenumber' previously defined here

int pagenumber = 1;

 ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:73:5: error: redefinition of 'int func'

int func; // For the sake of storing function into some dummy variable.

 ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:73:5: note: 'int func' previously declared here

int func; // For the sake of storing function into some dummy variable.

 ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:74:10: error: redefinition of 'long int Time'

long int Time; // For displaying the time the system has been running in the Serial log. Note: per version 1.3 the millis() function is used to determine the time. This value resets when the user hard resets the board (by pressing the reset button). Ploting data with the "time" variable is not recommended because of this. Instead, use the clock time that the serial monitor displays.

      ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:74:10: note: 'long int Time' previously declared here

long int Time; // For displaying the time the system has been running in the Serial log. Note: per version 1.3 the millis() function is used to determine the time. This value resets when the user hard resets the board (by pressing the reset button). Ploting data with the "time" variable is not recommended because of this. Instead, use the clock time that the serial monitor displays.

      ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:79:21: error: redefinition of 'float tempsetarray [4]'

float tempsetarray[4]; // An array for storing the adc value in this function.

                 ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:79:7: note: 'float tempsetarray [4]' previously declared here

float tempsetarray[4]; // An array for storing the adc value in this function.

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:80:23: error: redefinition of 'float tempvoltageset [4]'

float tempvoltageset[4]; // An array for converting the adc value to a voltage.

                   ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:80:7: note: 'float tempvoltageset [4]' previously declared here

float tempvoltageset[4]; // An array for converting the adc value to a voltage.

   ^~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:81:26: error: redefinition of 'float tempresistanceset [4]'

float tempresistanceset[4]; // An array for converting voltage to a resistance

                      ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:81:7: note: 'float tempresistanceset [4]' previously declared here

float tempresistanceset[4]; // An array for converting voltage to a resistance

   ^~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:82:14: error: redefinition of 'int tempset [4]'

int tempset[4]; // An array for storing the final set temperature, this is an INT and not a FLOAT because nobody cares about decimals here, and this is a -crudely- rounded number.

          ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:82:5: note: 'int tempset [4]' previously declared here

int tempset[4]; // An array for storing the final set temperature, this is an INT and not a FLOAT because nobody cares about decimals here, and this is a -crudely- rounded number.

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:83:5: error: redefinition of 'int tempsetmeasurementnumber'

int tempsetmeasurementnumber = 8; // For determining the number of measurements to average. This is to reduce noise on the analog inputs and to satiblize the LCD screen later on so it does not revert to the settings page everytime you breather or fart.

 ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:83:5: note: 'int tempsetmeasurementnumber' previously defined here

int tempsetmeasurementnumber = 8; // For determining the number of measurements to average. This is to reduce noise on the analog inputs and to satiblize the LCD screen later on so it does not revert to the settings page everytime you breather or fart.

 ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int tempsetread()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:86:5: error: redefinition of 'int tempsetread()'

int tempsetread(){

 ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:86:5: note: 'int tempsetread()' previously defined here

int tempsetread(){

 ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: At global scope:

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:99:13: error: redefinition of 'const float rseries'

const float rseries = 470; // The series resistance for the thermistors

         ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:99:13: note: 'const float rseries' previously defined here

const float rseries = 470; // The series resistance for the thermistors

         ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:100:13: error: redefinition of 'const float R0'

const float R0 = 10000; // R0 value for the thermistors. If you're changing out the thermistors for different ones, check their datasheets and change this value accordingly.

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:100:13: note: 'const float R0' previously defined here

const float R0 = 10000; // R0 value for the thermistors. If you're changing out the thermistors for different ones, check their datasheets and change this value accordingly.

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:101:13: error: redefinition of 'const float B'

const float B = 3470; // B value for the thermistors. If you're changing out the thermistors for different ones, check their datasheets and change this value accordingly.

         ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:101:13: note: 'const float B' previously defined here

const float B = 3470; // B value for the thermistors. If you're changing out the thermistors for different ones, check their datasheets and change this value accordingly.

         ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:102:13: error: redefinition of 'const float T0'

const float T0 = 298.15;

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:102:13: note: 'const float T0' previously defined here

const float T0 = 298.15;

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:103:13: error: redefinition of 'const float rinf'

const float rinf = R0 * exp(-B/T0);

         ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:103:13: note: 'const float rinf' previously defined here

const float rinf = R0 * exp(-B/T0);

         ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:104:20: error: redefinition of 'float tempsensor [10]'

float tempsensor[10];

                ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:104:7: note: 'float tempsensor [10]' previously declared here

float tempsensor[10];

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:105:21: error: redefinition of 'float tempvoltage [10]'

float tempvoltage[10];

                 ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:105:7: note: 'float tempvoltage [10]' previously declared here

float tempvoltage[10];

   ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:106:24: error: redefinition of 'float tempresistance [10]'

float tempresistance[10];

                    ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:106:7: note: 'float tempresistance [10]' previously declared here

float tempresistance[10];

   ^~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:107:11: error: redefinition of 'float T [10]'

float T[10];

       ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:107:7: note: 'float T [10]' previously declared here

float T[10];

   ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int tempread()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:109:5: error: redefinition of 'int tempread()'

int tempread(){

 ^~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:109:5: note: 'int tempread()' previously defined here

int tempread(){

 ^~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: At global scope:

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:119:11: error: redefinition of 'const int stepsperrevolution'

const int stepsperrevolution = 400; // This is based on the settings of the Kimbrough stepper motor driver. When adjusting those settings, change this value accordingly.

       ^~~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:119:11: note: 'const int stepsperrevolution' previously defined here

const int stepsperrevolution = 400; // This is based on the settings of the Kimbrough stepper motor driver. When adjusting those settings, change this value accordingly.

       ^~~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:120:11: error: redefinition of 'const int wheeldiameter'

const int wheeldiameter = 60; // This is the diameter of the driven pulling wheel in millimeters. By default this is 60mm for the steel roller, with twice the thickness of the cladding material (3mm rubber by default).

       ^~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:120:11: note: 'const int wheeldiameter' previously defined here

const int wheeldiameter = 60; // This is the diameter of the driven pulling wheel in millimeters. By default this is 60mm for the steel roller, with twice the thickness of the cladding material (3mm rubber by default).

       ^~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:121:7: error: redefinition of 'float speedvalue'

float speedvalue; // Float value for the analog input of the speed controller pin (value from 0 to 1023). Can be an integer, but float is easier to do math with.

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:121:7: note: 'float speedvalue' previously declared here

float speedvalue; // Float value for the analog input of the speed controller pin (value from 0 to 1023). Can be an integer, but float is easier to do math with.

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:122:7: error: redefinition of 'float speedvoltage'

float speedvoltage; // Float value for storing the voltage on the speed setting pin's ADC.

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:122:7: note: 'float speedvoltage' previously declared here

float speedvoltage; // Float value for storing the voltage on the speed setting pin's ADC.

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:123:7: error: redefinition of 'float speedresistance'

float speedresistance; // Value for the potentiometer of the speed control.

   ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:123:7: note: 'float speedresistance' previously declared here

float speedresistance; // Value for the potentiometer of the speed control.

   ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:124:5: error: redefinition of 'int mmperm'

int mmperm; // Speed in millimeters per minute

 ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:124:5: note: 'int mmperm' previously declared here

int mmperm; // Speed in millimeters per minute

 ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:125:7: error: redefinition of 'float rpm'

float rpm; // Speed in revolutions per minute

   ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:125:7: note: 'float rpm' previously declared here

float rpm; // Speed in revolutions per minute

   ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:126:7: error: redefinition of 'float frequency'

float frequency; // For storing the frequency that the arduino must supply the motor driver with.

   ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:126:7: note: 'float frequency' previously declared here

float frequency; // For storing the frequency that the arduino must supply the motor driver with.

   ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int speedsetread()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:127:5: error: redefinition of 'int speedsetread()'

int speedsetread(){

 ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:127:5: note: 'int speedsetread()' previously defined here

int speedsetread(){

 ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int rampup()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:148:5: error: redefinition of 'int rampup()'

int rampup(){

 ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:148:5: note: 'int rampup()' previously defined here

int rampup(){

 ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int directionswitch()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:164:5: error: redefinition of 'int directionswitch()'

int directionswitch(){

 ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:164:5: note: 'int directionswitch()' previously defined here

int directionswitch(){

 ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: At global scope:

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:206:7: error: redefinition of 'float forcecellrange'

float forcecellrange = 2000; // Max force output of the cell in Newtons(N). This is the force that is found at the maximum ADC value of 1023, and must be determined empirically. If you just fill in the rated range, you might get a slight error.

   ^~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:206:7: note: 'float forcecellrange' previously defined here

float forcecellrange = 2000; // Max force output of the cell in Newtons(N). This is the force that is found at the maximum ADC value of 1023, and must be determined empirically. If you just fill in the rated range, you might get a slight error.

   ^~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:207:11: error: redefinition of 'const int offset'

const int offset = 0; // 0 for the 10kN model, -290 for the 2kN model

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:207:11: note: 'const int offset' previously defined here

const int offset = 0; // 0 for the 10kN model, -290 for the 2kN model

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:208:7: error: redefinition of 'float force'

float force; // Force in Newtons

   ^~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:208:7: note: 'float force' previously declared here

float force; // Force in Newtons

   ^~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:209:7: error: redefinition of 'float forcevalue'

float forcevalue;

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:209:7: note: 'float forcevalue' previously declared here

float forcevalue;

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:210:7: error: redefinition of 'float forcereading'

float forcereading;

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:210:7: note: 'float forcereading' previously declared here

float forcereading;

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int forceread()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:211:5: error: redefinition of 'int forceread()'

int forceread(){

 ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:211:5: note: 'int forceread()' previously defined here

int forceread(){

 ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int heaters()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:224:5: error: redefinition of 'int heaters()'

int heaters(){

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:224:5: note: 'int heaters()' previously defined here

int heaters(){

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int logging()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:267:5: error: redefinition of 'int logging()'

int logging(){

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:267:5: note: 'int logging()' previously defined here

int logging(){

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int displaysettings()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:311:5: error: redefinition of 'int displaysettings()'

int displaysettings() {

 ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:311:5: note: 'int displaysettings()' previously defined here

int displaysettings() {

 ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int displayupperhalf()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:336:5: error: redefinition of 'int displayupperhalf()'

int displayupperhalf(){ // This function displays the temperatures for the upper half of the mold. Note that the T matrix indices are one lower than one might expect due to arrays being 0-indexed (the first element is index 0, second element is index 1 etc.)

 ^~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:336:5: note: 'int displayupperhalf()' previously defined here

int displayupperhalf(){ // This function displays the temperatures for the upper half of the mold. Note that the T matrix indices are one lower than one might expect due to arrays being 0-indexed (the first element is index 0, second element is index 1 etc.)

 ^~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int displaylowerhalf()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:368:5: error: redefinition of 'int displaylowerhalf()'

int displaylowerhalf() {

 ^~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:368:5: note: 'int displaylowerhalf()' previously defined here

int displaylowerhalf() {

 ^~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'void setup()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:403:6: error: redefinition of 'void setup()'

void setup() {

  ^~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:403:6: note: 'void setup()' previously defined here

void setup() {

  ^~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'void loop()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:485:6: error: redefinition of 'void loop()'

void loop() {

  ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:485:6: note: 'void loop()' previously defined here

void loop() {

  ^~~~

Using library LiquidCrystal at version 1.0.7 in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal

exit status 1

Error compiling for board Arduino Mega or Mega 2560.

Looks like you have the sketch doubled. Please post the code and remember to use </> code-tags (also for the error message) so we can read the code properly

1 Like

To restate the previous reply, you appear to have two files in the sketch folder:
PultruStat_ver_1.5.ino
PultruStat_ver_1.6 - GF-PA6.ino

The Arduino IDE will combine all the sketch files within the folder together before compiling, so it is seeing lots of things that are defined twice.

2 Likes

Hello, I have this error and I can not fix:

Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\lelow\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\lelow\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\lelow\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=1A86_7523 -ide-version=10816 -build-path C:\Users\lelow\AppData\Local\Temp\arduino_build_316928 -warnings=none -build-cache C:\Users\lelow\AppData\Local\Temp\arduino_cache_180911 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\lelow\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\lelow\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\lelow\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=1A86_7523 -ide-version=10816 -build-path C:\Users\lelow\AppData\Local\Temp\arduino_build_316928 -warnings=none -build-cache C:\Users\lelow\AppData\Local\Temp\arduino_cache_180911 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino

Using board 'mega' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr

Detecting libraries used...

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp" -o nul

Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7]

ResolveLibrary(LiquidCrystal.h)

-> candidates: [LiquidCrystal@1.0.7]

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src" "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp" -o nul

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src" "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src\LiquidCrystal.cpp" -o nul

Generating function prototypes...

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src" "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp" -o "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\preproc\ctags_target_for_gcc_minus_e.cpp"

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\preproc\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\mega" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src" "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp" -o "C:\Users\lelow\AppData\Local\Temp\arduino_build_316928\sketch\PultruStat_ver_1.5.ino.cpp.o"

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:33:18: error: redefinition of 'LiquidCrystal lcd'

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

              ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:33:15: note: 'LiquidCrystal lcd' previously declared here

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

           ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:37:25: error: redefinition of 'const int tempsenspin [10]'

const int tempsenspin[10] = {A0, A1, A2, A3, A4, A5, A6, A7, A8, A9};

                     ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:37:11: note: 'const int tempsenspin [10]' previously defined here

const int tempsenspin[10] = {A0, A1, A2, A3, A4, A5, A6, A7, A8, A9};

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:38:23: error: redefinition of 'const int tempsetpin [4]'

const int tempsetpin[4] = {A10, A11, A12, A13};

                   ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:38:11: note: 'const int tempsetpin [4]' previously defined here

const int tempsetpin[4] = {A10, A11, A12, A13};

       ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:39:11: error: redefinition of 'const int speedsetpin'

const int speedsetpin = A14;

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:39:11: note: 'const int speedsetpin' previously defined here

const int speedsetpin = A14;

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:40:11: error: redefinition of 'const int forcesenspin'

const int forcesenspin = A15;

       ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:40:11: note: 'const int forcesenspin' previously defined here

const int forcesenspin = A15;

       ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:43:11: error: redefinition of 'const int heaterpin11'

const int heaterpin11 = 24; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:43:11: note: 'const int heaterpin11' previously defined here

const int heaterpin11 = 24; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:44:11: error: redefinition of 'const int heaterpin12'

const int heaterpin12 = 25; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:44:11: note: 'const int heaterpin12' previously defined here

const int heaterpin12 = 25; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:45:11: error: redefinition of 'const int heaterpin13'

const int heaterpin13 = 26; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:45:11: note: 'const int heaterpin13' previously defined here

const int heaterpin13 = 26; //orange wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:46:11: error: redefinition of 'const int heaterpin21'

const int heaterpin21 = 8; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:46:11: note: 'const int heaterpin21' previously defined here

const int heaterpin21 = 8; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:47:11: error: redefinition of 'const int heaterpin22'

const int heaterpin22 = 9; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:47:11: note: 'const int heaterpin22' previously defined here

const int heaterpin22 = 9; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:48:11: error: redefinition of 'const int heaterpin23'

const int heaterpin23 = 10; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:48:11: note: 'const int heaterpin23' previously defined here

const int heaterpin23 = 10; //white wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:49:11: error: redefinition of 'const int heaterpin31'

const int heaterpin31 = 29; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:49:11: note: 'const int heaterpin31' previously defined here

const int heaterpin31 = 29; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:50:11: error: redefinition of 'const int heaterpin32'

const int heaterpin32 = 30; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:50:11: note: 'const int heaterpin32' previously defined here

const int heaterpin32 = 30; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:51:11: error: redefinition of 'const int heaterpin33'

const int heaterpin33 = 31; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:51:11: note: 'const int heaterpin33' previously defined here

const int heaterpin33 = 31; //yellow wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:52:11: error: redefinition of 'const int heaterpin41'

const int heaterpin41 = 35; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:52:11: note: 'const int heaterpin41' previously defined here

const int heaterpin41 = 35; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:53:11: error: redefinition of 'const int heaterpin42'

const int heaterpin42 = 36; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:53:11: note: 'const int heaterpin42' previously defined here

const int heaterpin42 = 36; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:54:11: error: redefinition of 'const int heaterpin43'

const int heaterpin43 = 37; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:54:11: note: 'const int heaterpin43' previously defined here

const int heaterpin43 = 37; //red wire

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:57:11: error: redefinition of 'const int driverpin'

const int driverpin = 7; // Yellow

       ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:57:11: note: 'const int driverpin' previously defined here

const int driverpin = 7; // Yellow

       ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:58:11: error: redefinition of 'const int DRminus'

const int DRminus = 49; // Brown

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:58:11: note: 'const int DRminus' previously defined here

const int DRminus = 49; // Brown

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:59:11: error: redefinition of 'const int DRplus'

const int DRplus = 50; // Red

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:59:11: note: 'const int DRplus' previously defined here

const int DRplus = 50; // Red

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:60:11: error: redefinition of 'const int PUminus'

const int PUminus = 51; // Orange

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:60:11: note: 'const int PUminus' previously defined here

const int PUminus = 51; // Orange

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:61:11: error: redefinition of 'const int MFminus'

const int MFminus = 52; // Green

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:61:11: note: 'const int MFminus' previously defined here

const int MFminus = 52; // Green

       ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:62:11: error: redefinition of 'const int MFplus'

const int MFplus = 53; // Blue

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:62:11: note: 'const int MFplus' previously defined here

const int MFplus = 53; // Blue

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:65:11: error: redefinition of 'const int settingspin'

const int settingspin = 40;

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:65:11: note: 'const int settingspin' previously defined here

const int settingspin = 40;

       ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:66:11: error: redefinition of 'const int directionpin'

const int directionpin = 41;

       ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:66:11: note: 'const int directionpin' previously defined here

const int directionpin = 41;

       ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:67:5: error: redefinition of 'int rotation'

int rotation = 1;

 ^~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:67:5: note: 'int rotation' previously defined here

int rotation = 1;

 ^~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:68:13: error: redefinition of 'const float v3'

const float v3 = 3.27; // The 3.3 volt output of the Arduino is not always exactly that. This ensure a somewhat more accurate value to work with.

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:68:13: note: 'const float v3' previously defined here

const float v3 = 3.27; // The 3.3 volt output of the Arduino is not always exactly that. This ensure a somewhat more accurate value to work with.

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:69:13: error: redefinition of 'const float vin'

const float vin = v3; // This is the voltage input for the sensors. Better use the 3.3 volt than the 5 volt since it is generally more accurate and stable than the 5 volt (depending on the Adruino's power source).

         ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:69:13: note: 'const float vin' previously defined here

const float vin = v3; // This is the voltage input for the sensors. Better use the 3.3 volt than the 5 volt since it is generally more accurate and stable than the 5 volt (depending on the Adruino's power source).

         ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:72:5: error: redefinition of 'int pagenumber'

int pagenumber = 1;

 ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:72:5: note: 'int pagenumber' previously defined here

int pagenumber = 1;

 ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:73:5: error: redefinition of 'int func'

int func; // For the sake of storing function into some dummy variable.

 ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:73:5: note: 'int func' previously declared here

int func; // For the sake of storing function into some dummy variable.

 ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:74:10: error: redefinition of 'long int Time'

long int Time; // For displaying the time the system has been running in the Serial log. Note: per version 1.3 the millis() function is used to determine the time. This value resets when the user hard resets the board (by pressing the reset button). Ploting data with the "time" variable is not recommended because of this. Instead, use the clock time that the serial monitor displays.

      ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:74:10: note: 'long int Time' previously declared here

long int Time; // For displaying the time the system has been running in the Serial log. Note: per version 1.3 the millis() function is used to determine the time. This value resets when the user hard resets the board (by pressing the reset button). Ploting data with the "time" variable is not recommended because of this. Instead, use the clock time that the serial monitor displays.

      ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:79:21: error: redefinition of 'float tempsetarray [4]'

float tempsetarray[4]; // An array for storing the adc value in this function.

                 ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:79:7: note: 'float tempsetarray [4]' previously declared here

float tempsetarray[4]; // An array for storing the adc value in this function.

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:80:23: error: redefinition of 'float tempvoltageset [4]'

float tempvoltageset[4]; // An array for converting the adc value to a voltage.

                   ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:80:7: note: 'float tempvoltageset [4]' previously declared here

float tempvoltageset[4]; // An array for converting the adc value to a voltage.

   ^~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:81:26: error: redefinition of 'float tempresistanceset [4]'

float tempresistanceset[4]; // An array for converting voltage to a resistance

                      ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:81:7: note: 'float tempresistanceset [4]' previously declared here

float tempresistanceset[4]; // An array for converting voltage to a resistance

   ^~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:82:14: error: redefinition of 'int tempset [4]'

int tempset[4]; // An array for storing the final set temperature, this is an INT and not a FLOAT because nobody cares about decimals here, and this is a -crudely- rounded number.

          ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:82:5: note: 'int tempset [4]' previously declared here

int tempset[4]; // An array for storing the final set temperature, this is an INT and not a FLOAT because nobody cares about decimals here, and this is a -crudely- rounded number.

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:83:5: error: redefinition of 'int tempsetmeasurementnumber'

int tempsetmeasurementnumber = 8; // For determining the number of measurements to average. This is to reduce noise on the analog inputs and to satiblize the LCD screen later on so it does not revert to the settings page everytime you breather or fart.

 ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:83:5: note: 'int tempsetmeasurementnumber' previously defined here

int tempsetmeasurementnumber = 8; // For determining the number of measurements to average. This is to reduce noise on the analog inputs and to satiblize the LCD screen later on so it does not revert to the settings page everytime you breather or fart.

 ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int tempsetread()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:86:5: error: redefinition of 'int tempsetread()'

int tempsetread(){

 ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:86:5: note: 'int tempsetread()' previously defined here

int tempsetread(){

 ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: At global scope:

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:99:13: error: redefinition of 'const float rseries'

const float rseries = 470; // The series resistance for the thermistors

         ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:99:13: note: 'const float rseries' previously defined here

const float rseries = 470; // The series resistance for the thermistors

         ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:100:13: error: redefinition of 'const float R0'

const float R0 = 10000; // R0 value for the thermistors. If you're changing out the thermistors for different ones, check their datasheets and change this value accordingly.

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:100:13: note: 'const float R0' previously defined here

const float R0 = 10000; // R0 value for the thermistors. If you're changing out the thermistors for different ones, check their datasheets and change this value accordingly.

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:101:13: error: redefinition of 'const float B'

const float B = 3470; // B value for the thermistors. If you're changing out the thermistors for different ones, check their datasheets and change this value accordingly.

         ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:101:13: note: 'const float B' previously defined here

const float B = 3470; // B value for the thermistors. If you're changing out the thermistors for different ones, check their datasheets and change this value accordingly.

         ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:102:13: error: redefinition of 'const float T0'

const float T0 = 298.15;

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:102:13: note: 'const float T0' previously defined here

const float T0 = 298.15;

         ^~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:103:13: error: redefinition of 'const float rinf'

const float rinf = R0 * exp(-B/T0);

         ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:103:13: note: 'const float rinf' previously defined here

const float rinf = R0 * exp(-B/T0);

         ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:104:20: error: redefinition of 'float tempsensor [10]'

float tempsensor[10];

                ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:104:7: note: 'float tempsensor [10]' previously declared here

float tempsensor[10];

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:105:21: error: redefinition of 'float tempvoltage [10]'

float tempvoltage[10];

                 ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:105:7: note: 'float tempvoltage [10]' previously declared here

float tempvoltage[10];

   ^~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:106:24: error: redefinition of 'float tempresistance [10]'

float tempresistance[10];

                    ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:106:7: note: 'float tempresistance [10]' previously declared here

float tempresistance[10];

   ^~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:107:11: error: redefinition of 'float T [10]'

float T[10];

       ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:107:7: note: 'float T [10]' previously declared here

float T[10];

   ^

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int tempread()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:109:5: error: redefinition of 'int tempread()'

int tempread(){

 ^~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:109:5: note: 'int tempread()' previously defined here

int tempread(){

 ^~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: At global scope:

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:119:11: error: redefinition of 'const int stepsperrevolution'

const int stepsperrevolution = 400; // This is based on the settings of the Kimbrough stepper motor driver. When adjusting those settings, change this value accordingly.

       ^~~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:119:11: note: 'const int stepsperrevolution' previously defined here

const int stepsperrevolution = 400; // This is based on the settings of the Kimbrough stepper motor driver. When adjusting those settings, change this value accordingly.

       ^~~~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:120:11: error: redefinition of 'const int wheeldiameter'

const int wheeldiameter = 60; // This is the diameter of the driven pulling wheel in millimeters. By default this is 60mm for the steel roller, with twice the thickness of the cladding material (3mm rubber by default).

       ^~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:120:11: note: 'const int wheeldiameter' previously defined here

const int wheeldiameter = 60; // This is the diameter of the driven pulling wheel in millimeters. By default this is 60mm for the steel roller, with twice the thickness of the cladding material (3mm rubber by default).

       ^~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:121:7: error: redefinition of 'float speedvalue'

float speedvalue; // Float value for the analog input of the speed controller pin (value from 0 to 1023). Can be an integer, but float is easier to do math with.

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:121:7: note: 'float speedvalue' previously declared here

float speedvalue; // Float value for the analog input of the speed controller pin (value from 0 to 1023). Can be an integer, but float is easier to do math with.

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:122:7: error: redefinition of 'float speedvoltage'

float speedvoltage; // Float value for storing the voltage on the speed setting pin's ADC.

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:122:7: note: 'float speedvoltage' previously declared here

float speedvoltage; // Float value for storing the voltage on the speed setting pin's ADC.

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:123:7: error: redefinition of 'float speedresistance'

float speedresistance; // Value for the potentiometer of the speed control.

   ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:123:7: note: 'float speedresistance' previously declared here

float speedresistance; // Value for the potentiometer of the speed control.

   ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:124:5: error: redefinition of 'int mmperm'

int mmperm; // Speed in millimeters per minute

 ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:124:5: note: 'int mmperm' previously declared here

int mmperm; // Speed in millimeters per minute

 ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:125:7: error: redefinition of 'float rpm'

float rpm; // Speed in revolutions per minute

   ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:125:7: note: 'float rpm' previously declared here

float rpm; // Speed in revolutions per minute

   ^~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:126:7: error: redefinition of 'float frequency'

float frequency; // For storing the frequency that the arduino must supply the motor driver with.

   ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:126:7: note: 'float frequency' previously declared here

float frequency; // For storing the frequency that the arduino must supply the motor driver with.

   ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int speedsetread()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:127:5: error: redefinition of 'int speedsetread()'

int speedsetread(){

 ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:127:5: note: 'int speedsetread()' previously defined here

int speedsetread(){

 ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int rampup()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:148:5: error: redefinition of 'int rampup()'

int rampup(){

 ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:148:5: note: 'int rampup()' previously defined here

int rampup(){

 ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int directionswitch()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:164:5: error: redefinition of 'int directionswitch()'

int directionswitch(){

 ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:164:5: note: 'int directionswitch()' previously defined here

int directionswitch(){

 ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: At global scope:

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:206:7: error: redefinition of 'float forcecellrange'

float forcecellrange = 2000; // Max force output of the cell in Newtons(N). This is the force that is found at the maximum ADC value of 1023, and must be determined empirically. If you just fill in the rated range, you might get a slight error.

   ^~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:206:7: note: 'float forcecellrange' previously defined here

float forcecellrange = 2000; // Max force output of the cell in Newtons(N). This is the force that is found at the maximum ADC value of 1023, and must be determined empirically. If you just fill in the rated range, you might get a slight error.

   ^~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:207:11: error: redefinition of 'const int offset'

const int offset = 0; // 0 for the 10kN model, -290 for the 2kN model

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:207:11: note: 'const int offset' previously defined here

const int offset = 0; // 0 for the 10kN model, -290 for the 2kN model

       ^~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:208:7: error: redefinition of 'float force'

float force; // Force in Newtons

   ^~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:208:7: note: 'float force' previously declared here

float force; // Force in Newtons

   ^~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:209:7: error: redefinition of 'float forcevalue'

float forcevalue;

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:209:7: note: 'float forcevalue' previously declared here

float forcevalue;

   ^~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:210:7: error: redefinition of 'float forcereading'

float forcereading;

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:210:7: note: 'float forcereading' previously declared here

float forcereading;

   ^~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int forceread()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:211:5: error: redefinition of 'int forceread()'

int forceread(){

 ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:211:5: note: 'int forceread()' previously defined here

int forceread(){

 ^~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int heaters()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:224:5: error: redefinition of 'int heaters()'

int heaters(){

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:224:5: note: 'int heaters()' previously defined here

int heaters(){

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int logging()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:267:5: error: redefinition of 'int logging()'

int logging(){

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:267:5: note: 'int logging()' previously defined here

int logging(){

 ^~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int displaysettings()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:311:5: error: redefinition of 'int displaysettings()'

int displaysettings() {

 ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:311:5: note: 'int displaysettings()' previously defined here

int displaysettings() {

 ^~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int displayupperhalf()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:336:5: error: redefinition of 'int displayupperhalf()'

int displayupperhalf(){ // This function displays the temperatures for the upper half of the mold. Note that the T matrix indices are one lower than one might expect due to arrays being 0-indexed (the first element is index 0, second element is index 1 etc.)

 ^~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:336:5: note: 'int displayupperhalf()' previously defined here

int displayupperhalf(){ // This function displays the temperatures for the upper half of the mold. Note that the T matrix indices are one lower than one might expect due to arrays being 0-indexed (the first element is index 0, second element is index 1 etc.)

 ^~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'int displaylowerhalf()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:368:5: error: redefinition of 'int displaylowerhalf()'

int displaylowerhalf() {

 ^~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:368:5: note: 'int displaylowerhalf()' previously defined here

int displaylowerhalf() {

 ^~~~~~~~~~~~~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'void setup()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:403:6: error: redefinition of 'void setup()'

void setup() {

  ^~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:403:6: note: 'void setup()' previously defined here

void setup() {

  ^~~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino: In function 'void loop()':

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.6 - GF-PA6.ino:485:6: error: redefinition of 'void loop()'

void loop() {

  ^~~~

C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5\PultruStat_ver_1.5.ino:485:6: note: 'void loop()' previously defined here

void loop() {

  ^~~~

Using library LiquidCrystal at version 1.0.7 in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal

exit status 1

Error compiling for board Arduino Mega or Mega 2560.

Hi @lelowijnands. The problem is you have two different versions of your sketch program in the same folder:

One is in the file named PultruStat_ver_1.6 - GF-PA6.ino:

and the other is in the file named PultruStat_ver_1.5.ino:

Because many sketches only contain a single .ino file, it's easy to assume that the .ino file is the sketch, but the sketch is actually the folder (C:\Users\lelow\Documents\TU TWENTE\MASTER\MSc THESIS\PultruStat_ver_1.5\PultruStat\ver_1.5\PultruStat_ver_1.5 in this case) and the sketch may contain multiple .ino files. These files are all concatenated into a single program before compiling, so when you put multiple copies of the same program in a sketch folder then you can get these "redefinition of..." errors.

The solution is to move the backup copies of the sketch to somewhere outside the sketch folder.

1 Like

I've merged your cross-posts @lelowijnands.

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide you will find at the top of every forum category. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

1 Like

Thank you so much! I have no experience so I know it's a easy/simple problem, Thanks for your time

Hi pert!

Apologies, I have no experience and I was a bit desperate. I posted the same error a month ago in a thread and could not find the solution, that's why I posted again in different threads today. Sorry again and thanks for you time!

Thank you so much!

Thanks a lot!