diff --git a/esphome/components/sensor/ppd42x.py b/esphome/components/sensor/ppd42x.py
index 88bf176c3a..0e4886b0fe 100644
--- a/esphome/components/sensor/ppd42x.py
+++ b/esphome/components/sensor/ppd42x.py
@@ -17,7 +17,7 @@ CONF_PPD42 = 'PPD42'
 CONF_PPD42NJ = 'PPD42NJ'
 CONF_PPD42NS = 'PPD42NS'
 
-CONF_PIN_02_5 = 'pin_2_5'
+CONF_PIN_02_5 = 'pin_02_5'
 CONF_PIN_10_0 = 'pin_10_0'
 
 
diff --git a/tests/test2.yaml b/tests/test2.yaml
index 23a884dd99..88114dc70a 100644
--- a/tests/test2.yaml
+++ b/tests/test2.yaml
@@ -83,13 +83,13 @@ sensor:
   - platform: ppd42x
     type: PPD42
     pin_10_0: GPIO32
-    pin_2_5: GPIO27
+    pin_02_5: GPIO27
     pm_2_5:
       name: "PM 2.5 Concentration"
     pm_10_0:
       name: "PM 10.0 Concentration"
   - platform: ppd42x
-    pin_2_5: GPIO27
+    pin_02_5: GPIO27
     type: PPD42NJ
     pm_2_5:
       name: "PM 2.5 Concentration"
diff --git a/tests/test3.yaml b/tests/test3.yaml
index ae844c5927..566edc2e41 100644
--- a/tests/test3.yaml
+++ b/tests/test3.yaml
@@ -46,19 +46,21 @@ deep_sleep:
 sensor:
   - platform: ppd42x
     type: PPD42
-    pin_10_0: D5
-    pin_2_5: D6
+    pin_10_0: GPIO05
+    pin_02_5: GPIO06
     pm_2_5:
       name: "PM 2.5 Concentration"
     pm_10_0:
       name: "PM 10.0 Concentration"
+
   - platform: ppd42x
     type: PPD42NJ
-    pin_2_5: D5
+    pin_02_5: GPIO05
     pm_2_5:
       name: "PM 2.5 Concentration"
+
   - platform: ppd42x
-    pin_10_0: D6
+    pin_10_0: GPIO06
     type: PPD42NS
     pm_10_0:
       name: "PM 10.0 Concentration"