Unable to use both mySD library and WiFi library with TTGO T1 ESP32

I am trying to get a time stamp via wifi to write to an SD card as data is collected. For some reason, when I introduce wifi capabilities, the SD card decides to not want to create a file and write data any more. I noticed that one of the issues is the type of board I’m using, but I’m sure what I am trying to do is not impossible.

#include <OneWire.h>            //Lib for temp sensor
#include <DallasTemperature.h>  //Lib for temp sensor
#include "EmonLib.h"            //Lib for voltage and current sensor
//#include "FS.h"
#include <mySD.h>               //Lib for SD card
#include <SPI.h>                //Lib for SD card
#include <NTPClient.h>          //Lib for time keeping
#include <WiFi.h>               //Lib for wifi conectivity (time, IoT)
#include <WiFiUdp.h>            //Lib for time
//dowloaded libraries may be found at C:\Users\Frankie\Documents\Arduino\libraries\Hardware\libraries
//this location is where the libraries adequately compile with the code
File myFile;
//create object instances to get time from online data base
const char *ssid     = "Butterbeer";
const char *password = "urawizard";
NTPClient timeClient(ntpUDP, "0.north-america.pool.ntp.org", -14400, 0);
String timestamp;
String sdate;
int dy;
int mo;
int yr;
//char fn[] = "";
const int VOLT_CAL = 110.1;              //voltage calibration value. This is used to scale voltage readings
const int CURRENT_CAL = 24;           //Current calibration value. This is used to scale current readings
EnergyMonitor emon1;                //define Energy monitor object this value will represent the ESP32 microprocessor

const int ONE_WIRE_BUS = 23;               //define data pin for Temperature sensor
const int LED = 5;                    //define LED pin
const int Vsenor_out = 4;             //define pin for Voltage sensor (connect ESP32 pin 4 to OUT on voltage sensor)
const int Isensor_out =0;             //Define pin for Current sensor 

OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);

void setup() {
  Serial.begin(115200);                       //set serial baud rate

  if (!SD.begin(13,15,2,14)){                           //SD card Initilization
    Serial.println("SD card initialization failed");
  else{Serial.println("SD card is ready to use");}
  WiFi.begin(ssid, password);                 //connect to wifi
  while ( WiFi.status() != WL_CONNECTED ) {
    delay ( 500 );
    Serial.print ( "." );
  timeClient.begin();                         //once connected to wifi, start time client
  //Voltage and current sensor initialization
  emon1.voltage(4, VOLT_CAL, 1.7);                //Voltage: (input pin, calibration value, phase_shift(do not change) )
  emon1.currentTX(Isensor_out, CURRENT_CAL);      //current: (input pin, calubration value)
  sensors.begin();                                //Temperature sensor begin
void loop() {
  //TIME CODE to get time at which temp, voltage, and current are measured

  Serial.print("Temperature is: ");
  float T_sense = sensors.getTempCByIndex(0);
  Serial.println(T_sense); //byIndex to get one value if multiple are being used

  emon1.calcVI(20,2000);          //Calculate all values. No. of half wavelengths, (crossings), time-out
  float supplyVoltage = emon1.Vrms;
  float currentDraw = emon1.calcIrms(1480);       //current
  float Power_calc = supplyVoltage * currentDraw; //power
  WriteSDData( T_sense, currentDraw, supplyVoltage);

  delay(500);                     //wait 500 ms

void WriteSDData( float t, float v, float i){
  char fn[] = "";
  timestamp = timeClient.getFormattedTime();
  sdate = timeClient.getFormattedDate();
  dy = sdate.substring(8,10).toInt();
  mo = sdate.substring(5,7).toInt();
  yr = sdate.substring(2,4).toInt();
//  int dy = 11;
//  int mo = 4;
//  int yr = 19;
  sprintf(fn,"T_%02d.txt", mo);
  myFile = SD.open("test.txt", FILE_WRITE);
    if (myFile) {
        myFile.print(timeClient.getFormattedTime());            myFile.print("\t");
        myFile.print(t);                                        myFile.print("\t");
        myFile.print(v);                                        myFile.print("\t");
        myFile.print(i);                                        myFile.print("\t");
        myFile.print(v*i);                                      myFile.println("\t");
        // close the file:
        Serial.println("done writing a line of data");
   else{Serial.println("data line was not printed");}