Please see all COVID-19 updates here as some shipments may be delayed due to CDC safety and staffing guidelines. If you have an order or shipping question please refer to our Customer Support page. For technical questions please check out our Forums. Thank you for your continued support.

Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F

Infrared proximity sensor made by Sharp. Part # GP2D120XJ00F has an analog output that varies from 3.1V at 3cm to 0.3V at 30cm with a supply voltage between 4.5 and 5.5VDC. The sensor has a Japanese Solderless Terminal (JST) Connector. We recommend purchasing the related pigtail below or soldering wires directly to the back of the module.


Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F Product Help and Resources

Core Skill: Programming

If a board needs code or communicates somehow, you're going to need to know how to program or interface with it. The programming skill is all about communication and code.

2 Programming

Skill Level: Rookie - You will need a better fundamental understand of what code is, and how it works. You will be using beginner-level software and development tools like Arduino. You will be dealing directly with code, but numerous examples and libraries are available. Sensors or shields will communicate with serial or TTL.
See all skill levels

Core Skill: Electrical Prototyping

If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.

1 Electrical Prototyping

Skill Level: Noob - You don't need to reference a datasheet, but you will need to know basic power requirements.
See all skill levels


Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • Careful using these on real projects there obsolete!

  • this sensor's range is not 3 to 40 cm
    but 4 to 30 cm....
    at least, according to it's datasheet.

  • I need to use a sensor to measure the linear position variation of a metallic beam moving in a frequency up to 60Hz (16ms). Then I will plot a graph. How many measuring does this sensor do in 16 ms? Is it indicated for that application?


  • Dear engineers

    Is this good for gasoline (benzine) level detection in tank? Or water?

  • What are the advantages/disadvantage to using an infrared sensor compared to a ultrasonic sensor for range finding

  • Pretty happy with this so far.

    For reference, I came up with the following function to convert its Vout to distance (cm): distancecm = (12.285/(voltage-0.097))-.42

  • What's the story with future availability? I see notes from 2 years ago that the parts are obsolete. But they're still available? I have a project that might need a couple of dozen of them. But I'm not ready to try to buy that many right now. Am I at risk of them not being available if/when I get around to ordering?

  • I am building wooden boxes and designing scenes on the inside of them. It will be a closed box with an LED to light the inside and a fisheye peephole to look through to the inside. I am thinking about purchasing this Sensor so that when people go to put their eye to the peep hole the light on the inside turns on, hands free. How could i go about connecting this sensor to a coincell battery source and the LED itself? Thanks

  • I was wondering if anyone has experience with what materials you can hide these sensors behind and still get a reading through? Any tips would be appreciated!

    • I have used these behind standard plexiglass. It tends to make the signal slightly more noisy, but detection works and helps protect the sensors which are quite sensitive to dirt and scratches.

  • Not such a great sensor for obstacle avoidance on an AV.
    When range get belows its valid range ( < ~4 cm), the sensor will read just about anything.
    Looks like if the signal is blocked, the sensor thinks the distance is so great that the signal dissipated before it could return and be read.
    Makes sense.
    But not so great if your AV turns into something. :^)
    Looks like the more expensive ultra sonic sensor is smart enough to interpret a blocked signal as its minimum distance. (conform anyone?)

  • Used this on a musical control surface as input to Max/MSP through Arduino, works really well!

  • I may use one of these as a controller for an 'Auduino'-based "theremin."

  • Does anyone have a simple (and fast) distance function to convert the voltage into a simple distance value? That would be super helpful. :)

  • the data sheet above is not so usefull.
    here's a link to a good one at sharp

  • Has anybody hooked up a scope to the output of this sensor? I have 2 here and I have to say the output on these units is extremely noisy. There's a 1KHz clock that shows up in the output, at a fairly high amplitude.

    • Thanks for the comment, we'll take a look and see if some low-pass filtering helps.

      • Hi guys, just wondering whether you've implemented the 100Hz LP on these devices. I purchased a few of these and just want to know whether I have to do the filtering or if its done already.

      • A 100Hz or lower low pass RC filter works very well. I've also implemented digital filters with these and it works great too.

  • I was able to run this at 3.3V and it appears to be working fine. Maybe the response curve will not be as smooth or something but for simple detecting it definitely works.

Customer Reviews

No reviews yet.