Running Arduino pins at 6V

My knowledge of arduino is extremely limited however it is for an assignment and I'm stuck.

Using the arduino Uno i was hoping to power sesnors that nedd a voltage of 6V according to their specs. How can I achieve this?

6volt is potentially dangerous for the Arduino.
Post the sensor datasheet link.

Inductive Proximity Switch

Model LJ12A3-4-Z/BX

Output Type NPN

Detecting Distance 4mm

Supply Voltage DC6-36V

Current Output 300 mA

Response Frequency 100Hz

Detect Object Iron

This is one of the sensors in question.

Did you read this?

Mas_Rerap:
Inductive Proximity Switch

Model LJ12A3-4-Z/BX

Output Type NPN

This means is open-collector current-sinking output

Detecting Distance 4mm

Supply Voltage DC6-36V

supply voltage is not the same as signalling voltage

Current Output 300 mA

it can pull down upto 300mA

Response Frequency 100Hz

Detect Object Iron

This is one of the sensors in question.

Basically you can interface this to anything so long as you add a pull-up
resistor on the output to your logic's supply voltage (or use internal pull up).

You need at least 6V ro power it (perhaps share with Vin).

If it has long cable then use 2k2 pullup to 5V, the internal pullups are rather
weak for suppressing cable-borne interference. You can add 10nF to ground
on the output too in noisy electrical environments to cut down high frequency
interference.