Four Quadrant Photodetector value read using Arduino Uno

Dear All,

I testing a four quadrant photodetector by reading the value by arduino uno. please help me out on the code part.
Image of the photodetector is attached below. please help me out with sketch code and connection.

Thank you in advance

start with trying this out:

https://www.arduino.cc/reference/en/language/functions/analog-io/analogread/

I am giving (+12 -12 GND) will it be possible to connect directly to the arduino uno board??

i have tried the above code it gives me the output of

1023
1023
1023
1023

1023
1023
1023
953

1023
1023
1018
1023

605
592
607
606

201
131
18
45

int analogPin0 = A0;
int analogPin1 = A1;
int analogPin2 = A2;
int analogPin3 = A3;

int val0 = 0;
int val1 = 0;
int val2 = 0;
int val3 = 0;

void setup()
{
Serial.begin(9600); // setup serial
}

void loop()
{
val0 = analogRead(analogPin0); // read the input pin
val1 = analogRead(analogPin1); // read the input pin
val2 = analogRead(analogPin2); // read the input pin
val3 = analogRead(analogPin3); // read the input pin

Serial.println(val0);
Serial.println(val1); // debug value
Serial.println(val2); // debug value
Serial.println(val3);
delay(4000);
Serial.print("\n ");

// debug value
// debug value
}

Azhaganandhan:
I am giving (+12 -12 GND) will it be possible to connect directly to the arduino uno board??

hmmm.... arduino input range is 0-5V and your feeding in a +/-12V signal .... wonder what's wrong here...

You should have a 10K resistor in series with each analog pin, to protect the pin from input voltages outside the allowed range 0 to 5V.

Use a voltage divider if you want to read voltages greater than 5V.

I have added voltage divider with pin that read the output value.. can anyone help me out on the code. i need a sample code