DS18S20 temperature sensor , reading problem.

I have a huge problem about reading ds18s20 temperature sensor , I can not find how to read the temperature from it, Not one example, the sensor has 2 pins only,
please help me

damir27:
the sensor has 2 pins only

Then it probably isn't a DS18B20. Even if it is, get one with three pins. I'm sure you will then find things a lot easier, and well worth the expense.

damir27:
I have a huge problem about reading ds18s20 temperature sensor , I can not find how to read the temperature from it, Not one example, the sensor has 2 pins only,
please help me

Nick is right. The ds18b20 (and ds18s20) has 3 pins.

Also, on ebay, there are definitely fake ds18b20 out there, which are transistors in disguise. And whoever fabricated those fake ds18b20 should be jailed (or put out of their misery).

And.... also, the ds18s20 could be a hassle to use, while the ds18b20 is easier to get going.

https://www.maximintegrated.com/en/app-notes/index.mvp/id/4377

The DS18B20 can be wired to 2 wire use. best to snap a picture.

read up on the one-wire use and parasite mode

need the one-wire library.
and of course, you should post your code.

I use that sensor and it has 3 wires. You need a 4.7k resistor between vcc and signal for it to work as well. Plus taking a look at the code will help.

Assuming the OP has the ds18s20, and not the ds18b20. Both have 3 pins..... but different in terms of convenience of usage.

Hi,
Can you post a link to where you purchased the temp sensor please?

Can you post a picture of your sensor?

Thanks.. Tom.... :slight_smile:

JayMan:
I use that sensor and it has 3 wires. You need a 4.7k resistor between vcc and signal for it to work as well. Plus taking a look at the code will help.

it has 3 pins, but can be wired as a 2 wire device.
without the OP posting code and a pic of his device or wiring schematic, we are only guessing what he is doing

Gee, I thought OP said, with extraordinary clarity

the sensor has 2 pins only

Where is the guessing with that?
The fact that the three pin device can be wired as a two pin device seems to be just a silly red herring when your "sensor has two pins only"

Hi,
What is this posting about?

https://forum.arduino.cc/index.php?topic=509044.msg3469946#msg3469946

Tom... :slight_smile:

Nick_Pyner:
Gee, I thought OP said, with extraordinary clarityWhere is the guessing with that?
The fact that the three pin device can be wired as a two pin device seems to be just a silly red herring when your "sensor has two pins only"

he also said withe extraordinary clarity it is a DS18B20 and that device is manufactured with 3 pins.
so, there is confusion somewhere.
starting with the 3 pin DS18B20, it could be wired as a 2 wire device.
hence the incorrect description of it having 2 'pins' and not 2 'wires'
it may not be a DS18B20, but rather a 2-pin device such as a thermocouple or thermistor or RTD..... then the specific device description we were given in the first post would be in error.
hence the multiple requests for photo or more information.
but since we are stripping away the confusion, and using the two bits of information in the first post, a DS18B20 and 2 pins,
The DS18B20 , 3 pin device, can be wired for either 2 wires or 3 wires per the data sheet (linked earlier)
only the OP can clear up the confusion.

[EDIT from the data sheet :
Available in 8-Pin SO (150 mils), 8-Pin µSOP, and 3-Pin TO-92 Packages ]

TomGeorge:
Hi,
What is this posting about?

DS18S20 temperature sensor , delay problem - Programming Questions - Arduino Forum

Tom... :slight_smile:

seems the OP chose to open a new thread ?
and since he said the DS18B20 (3 [ or 8 ] pin device) is working with the sketch to get the address. he probably abandoned this thread.