diff --git a/RadiationMapper.ino b/RadiationMapper.ino
index 45c791c..d892460 100644
--- a/RadiationMapper.ino
+++ b/RadiationMapper.ino
@@ -18,7 +18,7 @@ along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 #include <list>
 
-#define INPUT_PIN D6 //VIN PIN FOR GEIGER COUNTER
+#define INPUT_PIN 14 //VIN PIN FOR GEIGER COUNTER
 #define MEASUREMENT_TIME_MS 60000 //MINUTE
 
 std::list<unsigned long> counts; //COUNTS IN LAST MINUTE (OR MEASUREMENT_TIME_MS IF MODIFIED)
diff --git a/monitor.sh b/monitor.sh
index ef08383..032735c 100644
--- a/monitor.sh
+++ b/monitor.sh
@@ -1,6 +1,5 @@
 #!/bin/bash
 
-board="esp8266:esp8266:nodemcuv2"
 # This is part of RadiationMapping
 # Copyright (C) 2024 Václav Šmejkal
 
@@ -17,6 +16,7 @@ board="esp8266:esp8266:nodemcuv2"
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
+board="esp32:esp32:esp32"
 port="/dev/ttyUSB0"
 baudrate="9600"
 
diff --git a/setup.sh b/setup.sh
index 893cfea..d095298 100644
--- a/setup.sh
+++ b/setup.sh
@@ -17,4 +17,4 @@
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 arduino-cli core update-index
-arduino-cli core install --additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json esp8266:ESP8266
+arduino-cli core install --additional-urls https://dl.espressif.com/dl/package_esp32_index.json esp32:esp32
diff --git a/upload.sh b/upload.sh
index 13e06d9..8a3ffa5 100644
--- a/upload.sh
+++ b/upload.sh
@@ -1,6 +1,5 @@
 #!/bin/bash
 
-board="esp8266:esp8266:nodemcuv2"
 # This is part of RadiationMapping
 # Copyright (C) 2024 Václav Šmejkal
 
@@ -17,6 +16,7 @@ board="esp8266:esp8266:nodemcuv2"
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
+board="esp32:esp32:esp32"
 port="/dev/ttyUSB0"
 
 arduino-cli compile -b $board -p $port $(pwd | rev | cut -d "/" -f 1 | rev).ino