Hello all. I've been using this forum for about a month now, just going through old threads and getting 90% of my questions answered that way... but tonight I got a shipment of new sensors for my project and I've hit a bit of a roadblock. Thus the new account.
I got two SHT10 sensors, connected to my Mega, and I'm having trouble getting readings from the second one. I can get one to work just fine, but as soon as I try to read from the second, I either get gibberish, or (seemingly) no communication. I've tried using the sht1xalt-master.h library, but that only gets me one sensor (and that sensor's readings are very accurate, when cross-referenced with two K-Type thermocouples). I've also tried the Multple_SHTs.pde example and that will "read" the second sensor, but not the first sensor. When I say it will "read" it, it shows -39.úü celsius and 0.10% humidity when I know it's between +24.2 and +24.5 celsius and roughly 42% humidity...
All my wiring is correct (common +, -, and clk, each data pin has it's own input on the board according to the examples I'm using). Data on sensor 1 is D3 and sensor 2 is D4.
So basically, what I want to know is... has anyone worked with these before and been able to get multiple sensors to work correctly? If so, where do I go from here? Is there a way to get the sht1xalt-master.h library to work with multiple sensors relatively easily without having to restructure the whole .cpp file? or should I try to get the Multiple_SHTs to work? I also tried the Sensiron.h library, and it wont even compile, saying there's a ton of variables not defined in the .cpp file...
I'm very much a noob to programming for this platform (I'm used to doing HTML/PHP, not so familiar with C++ at all), so please go easy on me...
EDIT: I don't really know what I did, but it seems to me that I swapped the data lines from sensor 1 and sensor 2 on the arduino, and now sensor 2 (D3) is reading bang on (24.07 celsius and 43.9% humidity) while sensor 1 (D4) is reading -39.úü celsius.
Also, I don't know if this is a contributing factor or not, but I also have an ethernet shield ontop of the Mega that the jumpers are being wired into. Not really doing anything with the ethernet shield yet, until I actually get the sensor readings working... but that shouldn't affect much, should it?