
Espressif Systems
ESP32-WROOM-32E-N8R2 is a close functional option with PCB antenna.
ESP32-WROOM-32UE-N8 replacements need careful review because the target uses 8 MB flash and a U.FL antenna connector.
Voltage matches many ESP32 candidates.
38-SMD matches, pinout not checked.
Flash and PSRAM sizes vary.
Some candidates are NRND or obsolete.
No verified pin-compatible replacement is proven from the supplied data.
Start with 8 MB ESP32-WROOM variants, then verify pinout and antenna layout.
U.FL versus PCB antenna is the main replacement risk.

Espressif Systems
ESP32-WROOM-32E-N8R2 is a close functional option with PCB antenna.
| Feature / factor | ESP32-WROOM-32UE-N8 | ESP32-WROOM-32E-N8R2 | ESP32-WROOM-32D-N8 | ESP32-WROOM-32D-N16 | Compatibility / risk |
|---|---|---|---|---|---|
| Package | 38-SMD | 38-SMD | 38-SMD | 38-SMD | 38-SMD — same package name; ESP32-WROOM-32D-N8: same package name; ESP32-WROOM-32D-N16: same package name; ESP32-WROOM-32E-N4: same package name |
| Pinout | 38 pins | 38 pins | 38 pins | 38 pins | 38 pins — pin map not checked; ESP32-WROOM-32D-N8: pin map not checked; ESP32-WROOM-32D-N16: pin map not checked; ESP32-WROOM-32E-N4: pin map not checked |
| Voltage | 3.0-3.6 V | 3.0-3.6 V | 3.0-3.6 V | 3.0-3.6 V | 3.0-3.6 V — range matches; ESP32-WROOM-32D-N8: range matches; ESP32-WROOM-32D-N16: range matches; ESP32-WROOM-32E-N4: range matches |
| Application | U.FL antenna | PCB trace | PCB trace | PCB trace | PCB trace / 4 MB,PCB — RF layout change; ESP32-WROOM-32D-N8: RF path differs; ESP32-WROOM-32D-N16: RF path differs; ESP32-WROOM-32E-N4: memory and RF differ |
| Temperature | -40 to 85 C | -40 to 85 C | -40 to 85 C | -40 to 85 C | -40 to 85 C — range matches; ESP32-WROOM-32D-N8: range matches; ESP32-WROOM-32D-N16: range matches |
From the supplied data, ESP32-WROOM-32E-N8R2 is the closest kept option, but it is not verified drop-in.