# MCP3008, cannot read the value

**URL:** https://discourse.nodered.org/t/mcp3008-cannot-read-the-value/81417
**Category:** General
**Created:** [18 September 2023 15:10 UTC](https://discourse.nodered.org/t/mcp3008-cannot-read-the-value/81417 "2023-09-18T15:10:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Erwin228](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@Erwin228](https://discourse.nodered.org/u/Erwin228)
#### Post date: [18 September 2023 15:10 UTC](https://discourse.nodered.org/t/mcp3008-cannot-read-the-value/81417/1 "2023-09-18T15:10:01Z")

</div>

Hello everybody,  
I got a problem that even ChatGTP has no answer for...

I got a MCP3008, channel 0, CS0 SPI0 with LDR and got it working with Python.

With Node-Red I used RPI-a/d converter with a debug to read (result: statusVal = "")  
I tried all the channels, CS and bus without any result.

Somebody please.......

---

<div class="post-metadata">

### Author: ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)
#### Post date: [18 September 2023 17:55 UTC](https://discourse.nodered.org/t/mcp3008-cannot-read-the-value/81417/2 "2023-09-18T17:55:34Z")

</div>

What node did you use?  
Else [try this one](https://flows.nodered.org/node/node-red-node-pi-mcp3008) special for the MCP3008

---

<div class="post-metadata">

### Author: ![Erwin228](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@Erwin228](https://discourse.nodered.org/u/Erwin228)
#### Post date: [18 September 2023 18:30 UTC](https://discourse.nodered.org/t/mcp3008-cannot-read-the-value/81417/3 "2023-09-18T18:30:05Z")

</div>

I used this node, and tried all possible settings.  
What is the difference between Node-Red and Python (by Thonny) both on the same RPI4

On Node-Red works everything, DS18b20 dig in and dig-out are all working.

Thanks for the reply😀

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [17 November 2023 18:30 UTC](https://discourse.nodered.org/t/mcp3008-cannot-read-the-value/81417/4 "2023-11-17T18:30:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
