ESP32 Hall Effect Sensor Not Working

Code:

int val = 0;
void setup() {
Serial.begin(9600);
}

void loop() {
// put your main code here, to run repeatedly:
val = hallRead();
// print the results to the serial monitor:
//Serial.print("sensor = ");
Serial.println(val);//to graph
}

There is NO circuit diagram as I am using integrated sensor. Also the hall sensor is IN the chip and doesn't have a datasheet