OneWire sensor not showing up

I can’t seem to get the onewire library to work, seems that it just cant seem to see either a ds18s20 or a ds18b20.

/code
#include <OneWire.h>
OneWire ds(5); // on pin 10

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

void loop(void) {
byte i;
byte present = 0;
byte data[12];
byte addr[8];

if ( !ds.search(addr)) {
Serial.print(“No more addresses.\n”);
ds.reset_search();
return;
}

Serial.print(“R=”);
for( i = 0; i < 8; i++) {
Serial.print(addr*, HEX);*

  • Serial.print(" ");*
  • }*
  • if ( OneWire::crc8( addr, 7) != addr[7]) {*
  • Serial.print(“CRC is not valid!\n”);*
  • return;*
  • }*
  • if ( addr[0] != 0x10) {*
  • Serial.print(“Device is not a DS18S20 family device.\n”);*
  • return;*
  • }*
    }
    /output
    No more addresses.